add comment

This commit is contained in:
dualface 2012-09-20 11:48:34 +08:00
parent 1a162a09ad
commit 2e900da66d
1 changed files with 2 additions and 0 deletions

View File

@ -260,6 +260,8 @@ void CCLayer::onExit()
if( m_bIsTouchEnabled )
{
pDirector->getTouchDispatcher()->removeDelegate(this);
// fix: CCLayer re-added to the scene after the loss of scripting touch events
// unregisterScriptTouchHandler();
}
// remove this layer from the delegates who concern Accelerometer Sensor