-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from matej21/fix/removing_listeners
EventManager::removeEventListener: fixed emptying list of sorted events
- Loading branch information
Showing
3 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,6 +201,37 @@ public function onBar(EventArgsMock $args) | |
|
||
|
||
|
||
/** | ||
* @author Filip Procházka <[email protected]> | ||
*/ | ||
class EventListenerMock2 extends Nette\Object implements Kdyby\Events\Subscriber | ||
{ | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getSubscribedEvents() | ||
{ | ||
return array( | ||
'onFoo', | ||
'onBar' | ||
); | ||
} | ||
|
||
|
||
public function onFoo() | ||
{ | ||
} | ||
|
||
|
||
public function onBar() | ||
{ | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
/** | ||
* @author Filip Procházka <[email protected]> | ||
*/ | ||
|