mirror of https://github.com/axmolengine/axmol.git
add comment
This commit is contained in:
parent
1a162a09ad
commit
2e900da66d
|
@ -260,6 +260,8 @@ void CCLayer::onExit()
|
||||||
if( m_bIsTouchEnabled )
|
if( m_bIsTouchEnabled )
|
||||||
{
|
{
|
||||||
pDirector->getTouchDispatcher()->removeDelegate(this);
|
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
|
// remove this layer from the delegates who concern Accelerometer Sensor
|
||||||
|
|
Loading…
Reference in New Issue