Changeset 2337 for trunk/system/libraries/Event_Subject.php
- Timestamp:
- 03/24/08 14:17:38 (5 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Event_Subject.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Event_Subject.php
r2330 r2337 42 42 public function detach(SplObserver $obj) 43 43 { 44 if ( ! ($obj instanceof Event_Observer))45 throw new Kohana_Exception('eventable.invalid_observer', get_class($obj), get_class($this));46 47 // Notify the observer of removal48 $this->listeners[spl_object_hash($obj)]->remove();49 50 44 // Remove the listener 51 45 unset($this->listeners[spl_object_hash($obj)]);
