Merge pull request #766 from zimmi/allow-clearing-event-listeners
Add EventDispatcher::clear
This commit is contained in:
@@ -66,4 +66,11 @@ public abstract class EventDispatcher<E extends EventListener, T> {
|
|||||||
tell(l.data, event, data);
|
tell(l.data, event, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove all listeners.
|
||||||
|
*/
|
||||||
|
public void clear() {
|
||||||
|
mListeners = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user