From a96507d040533df6b683257e59720a9fc3a7d1bf Mon Sep 17 00:00:00 2001 From: pandamicro Date: Thu, 25 Aug 2016 14:23:56 +0800 Subject: [PATCH] Fix event handler not activated if register before active --- cocos2d/core/CCNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/core/CCNode.js b/cocos2d/core/CCNode.js index 8b13349535..3a928d006d 100644 --- a/cocos2d/core/CCNode.js +++ b/cocos2d/core/CCNode.js @@ -1143,7 +1143,7 @@ var Node = cc.Class({ } if (newAdded && !this._activeInHierarchy) { cc.director.getScheduler().schedule(function() { - if (this._activeInHierarchy) { + if (!this._activeInHierarchy) { cc.eventManager.pauseTarget(this); } }, this, 0, 0, 0, false);