We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit dce975e3 authored by Evan Prodromou's avatar Evan Prodromou

allow events without arguments

parent 175f1e73
......@@ -98,7 +98,7 @@ class Event {
* on results of handlers.
public static function handle($name, $args) {
public static function handle($name, $args=array()) {
$result = null;
if (array_key_exists($name, Event::$_handlers)) {
foreach (Event::$_handlers[$name] as $handler) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment