diff --git a/cocos2d/core/components/CCRendererInSG.js b/cocos2d/core/components/CCRendererInSG.js index cc11796704..736e1ad883 100644 --- a/cocos2d/core/components/CCRendererInSG.js +++ b/cocos2d/core/components/CCRendererInSG.js @@ -72,9 +72,9 @@ var RendererInSG = cc.Class({ onEnable: function () { if (CC_JSB && cc.director.getActionManager().getNumberOfRunningActionsInTarget(this.node) > 0) { - cc.log('The node "%s" has a component inherited from "cc._RendererInSG"', this.node.name); - cc.log('JSB environment is not support invoke node.runAction before the "cc._RendererInSG" component enabled.'); - cc.log('Please use runAction in the method "start" instead.'); + cc.error('The node "%s" has a component inherited from "cc._RendererInSG"', this.node.name); + cc.error('JSB environment is not support invoke node.runAction before the "cc._RendererInSG" component enabled.'); + cc.error('Please use runAction in the method "start" instead.'); } this._replaceSgNode(this._sgNode); }, diff --git a/cocos2d/deprecated.js b/cocos2d/deprecated.js index acb682b208..b595e4cef7 100644 --- a/cocos2d/deprecated.js +++ b/cocos2d/deprecated.js @@ -586,6 +586,10 @@ if (CC_DEV) { getPreferredSize: 'getContentSize', }); + js.obsoletes(cc.ActionManager.prototype, 'cc.ActionManager', { + 'numberOfRunningActionsInTarget' : 'getNumberOfRunningActionsInTarget' + }); + //ui if (cc.Layout) { js.obsolete(cc.Layout.prototype, 'cc.Layout.layoutType', 'type');