Update cocos2dx/layers_scenes_transitions_nodes/CCLayer.cpp

This commit is contained in:
minggo 2012-09-20 16:15:00 +08:00
parent 31c6f46b6a
commit e84606aa47
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2010 Ricardo Quesada
@ -260,7 +259,7 @@ void CCLayer::onExit()
if( m_bIsTouchEnabled )
{
pDirector->getTouchDispatcher()->removeDelegate(this);
// fix: CCLayer re-added to the scene after the loss of scripting touch events
// [lua]:don't unregister script touch handler, or the handler will be destroyed
// unregisterScriptTouchHandler();
}