Merge pull request #1148 from natural-law/action-tips

Solve the reviewed issues.
This commit is contained in:
Jare Guo
2016-09-23 18:18:42 +08:00
committed by GitHub
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -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);
},
+4
View File
@@ -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');