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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove all listeners.
|
||||
*/
|
||||
public void clear() {
|
||||
mListeners = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user