Fix HandlerList.php wrong var name

This commit is contained in:
PEMapModder 2014-07-05 11:48:13 +08:00
parent 5a8e6619e9
commit b18783a0e7

View File

@ -125,8 +125,8 @@ class HandlerList{
$this->handlers = null;
}
}elseif($object instanceof RegisteredListener){
if(isset($this->handlerSlots[$object->getPriority()][spl_object_hash($listener)])){
unset($this->handlerSlots[$object->getPriority()][spl_object_hash($listener)]);
if(isset($this->handlerSlots[$object->getPriority()][spl_object_hash($object)])){
unset($this->handlerSlots[$object->getPriority()][spl_object_hash($object)]);
$this->handlers = null;
}
}
@ -176,4 +176,4 @@ class HandlerList{
return self::$allLists;
}
}
}