Skip to content

Commit

Permalink
Finishing touches
Browse files Browse the repository at this point in the history
  • Loading branch information
creocoder committed Sep 20, 2012
1 parent 7e18d55 commit 6674ced
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework/base/CBehavior.php
Expand Up @@ -48,8 +48,7 @@ public function attach($owner)
$class=new ReflectionClass($this);
foreach($this->events() as $event=>$handler)
{
$method=$class->getMethod($handler);
if(!$method->getDeclaringClass()->hasProperty('_events_provider'))
if(!$class->getMethod($handler)->getDeclaringClass()->hasProperty('_events_provider'))
$owner->attachEventHandler($event,array($this,$handler));
}
}
Expand Down

0 comments on commit 6674ced

Please sign in to comment.