Add EventDispatcher::clear

This commit is contained in:
thomas 2020-02-09 13:51:36 +01:00
parent bdd08e3486
commit 841b3af042

View File

@ -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;
}
}