mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
@@ -1297,7 +1297,9 @@ void EventDispatcher::removeEventListenersForTypeKey(const EventListener::TypeKe
|
||||
|
||||
// Remove the dirty flag according the 'listenerID'.
|
||||
// No need to check whether the dispatcher is dispatching event.
|
||||
_priorityDirtyFlagMap.erase(listenerID);
|
||||
if (_priorityDirtyFlagMap.find(listenerID) != _priorityDirtyFlagMap.end()) {
|
||||
_priorityDirtyFlagMap.erase(listenerID);
|
||||
}
|
||||
|
||||
if (_inDispatch == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user