Ensure that child also invalidate events

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-08-26 13:24:16 +02:00
parent 1b13a46d74
commit d56479d316

View File

@ -220,6 +220,10 @@ class EventNodeImpl<T extends Event> implements EventNode<T> {
for (Class<? extends T> eventType : listenerMap.keySet()) {
node.invalidateEvent(eventType);
}
// TODO bindings?
for (EventNodeImpl<T> child : children) {
child.invalidateEventsFor(node);
}
}
private void invalidateEvent(Class<? extends T> eventClass) {