Merge pull request #766 from zimmi/allow-clearing-event-listeners

Add EventDispatcher::clear
This commit is contained in:
Emux
2020-02-10 17:50:03 +02:00
committed by GitHub

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