public function detach($owner) { foreach ($this->events() as $event => $handler) { $owner->detachEventHandler($event, array($this, $handler)); } $this->_owner = null; }