From f519025fadba464ae38b1080da3671b383ddfd93 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Tue, 8 Apr 2014 02:18:23 +0100 Subject: Fix last commit. --- core/EventDispatcher.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'core/EventDispatcher.php') diff --git a/core/EventDispatcher.php b/core/EventDispatcher.php index b884505177..9b4af816da 100644 --- a/core/EventDispatcher.php +++ b/core/EventDispatcher.php @@ -126,7 +126,7 @@ class EventDispatcher extends Singleton } /** - * Removes all registered observers for an event name. Only used for testing. + * Removes all registered extra observers for an event name. Only used for testing. * * @param string $eventName */ @@ -135,6 +135,14 @@ class EventDispatcher extends Singleton $this->extraObservers[$eventName] = array(); } + /** + * Removes all registered extra observers. Only used for testing. + */ + public function clearAllObservers() + { + $this->extraObservers = array(); + } + /** * Re-posts all pending events to the given plugin. * -- cgit v1.2.3