Don't set listener type to "" when dissociateEventListener.

This commit is contained in:
James Chen 2013-09-20 14:36:15 +08:00
parent 3d41b7e33c
commit c22315a19c
1 changed files with 1 additions and 6 deletions

View File

@ -1304,12 +1304,7 @@ void Node::associateEventListener(EventListener* listener)
void Node::dissociateEventListener(EventListener* listener)
{
auto foundIter = _eventlisteners.find(listener);
if (foundIter != _eventlisteners.end())
{
(*foundIter)->_type = "";
_eventlisteners.erase(listener);
}
_eventlisteners.erase(listener);
}
void Node::removeAllEventListeners()