Add EventDispatcher::clear
This commit is contained in:
parent
bdd08e3486
commit
841b3af042
@ -66,4 +66,11 @@ public abstract class EventDispatcher<E extends EventListener, T> {
|
||||
tell(l.data, event, data);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove all listeners.
|
||||
*/
|
||||
public void clear() {
|
||||
mListeners = null;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user