mirror of https://github.com/axmolengine/axmol.git
Don't set listener type to "" when dissociateEventListener.
This commit is contained in:
parent
3d41b7e33c
commit
c22315a19c
|
@ -1304,12 +1304,7 @@ void Node::associateEventListener(EventListener* listener)
|
||||||
|
|
||||||
void Node::dissociateEventListener(EventListener* listener)
|
void Node::dissociateEventListener(EventListener* listener)
|
||||||
{
|
{
|
||||||
auto foundIter = _eventlisteners.find(listener);
|
_eventlisteners.erase(listener);
|
||||||
if (foundIter != _eventlisteners.end())
|
|
||||||
{
|
|
||||||
(*foundIter)->_type = "";
|
|
||||||
_eventlisteners.erase(listener);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Node::removeAllEventListeners()
|
void Node::removeAllEventListeners()
|
||||||
|
|
Loading…
Reference in New Issue