Show
Ignore:
Timestamp:
03/24/08 14:17:38 (5 months ago)
Author:
Shadowhand
Message:

Updated Calendar:

  • Added Easter as a supported holiday
  • Optimized Calendar_Event->notify() a bit

Also, minor tweaks to Event_Subject and Event_Observer

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Event_Subject.php

    r2330 r2337  
    4242    public function detach(SplObserver $obj) 
    4343    { 
    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 removal 
    48         $this->listeners[spl_object_hash($obj)]->remove(); 
    49  
    5044        // Remove the listener 
    5145        unset($this->listeners[spl_object_hash($obj)]);