diff --git a/cocos2d/core/CCNode.js b/cocos2d/core/CCNode.js index 3585afed26..8f5c725e68 100644 --- a/cocos2d/core/CCNode.js +++ b/cocos2d/core/CCNode.js @@ -45,7 +45,7 @@ var ERR_INVALID_NUMBER = CC_EDITOR && 'The %s is invalid'; var Misc = require('./utils/misc'); //var RegisteredInEditor = Flags.RegisteredInEditor; -var ActionManagerExist = cc.ActionManager !== undefined; +var ActionManagerExist = !!cc.ActionManager; var emptyFunc = function () {}; /** diff --git a/cocos2d/core/base-nodes/CCSGNode.js b/cocos2d/core/base-nodes/CCSGNode.js index 1d5c21fc1e..1e9a2d16b2 100644 --- a/cocos2d/core/base-nodes/CCSGNode.js +++ b/cocos2d/core/base-nodes/CCSGNode.js @@ -24,7 +24,7 @@ THE SOFTWARE. ****************************************************************************/ -var ActionManagerExist = cc.ActionManager !== undefined; +var ActionManagerExist = !!cc.ActionManager; var emptyFunc = function () {}; /*