mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
Merge pull request #1148 from natural-law/action-tips
Solve the reviewed issues.
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user