diff --git a/cocos/scene-graph/component-scheduler.js b/cocos/scene-graph/component-scheduler.js index 7ee4e0ced0..e82f312870 100644 --- a/cocos/scene-graph/component-scheduler.js +++ b/cocos/scene-graph/component-scheduler.js @@ -101,7 +101,6 @@ function stableRemoveInactive (iterator, flagToClear) { } // This class contains some queues used to invoke life-cycle methods by script execution order -@ccclass class LifeCycleInvoker { constructor (invokeFunc) { var Iterator = array.MutableForwardIterator; @@ -132,7 +131,6 @@ function compareOrder (a, b) { } // for onLoad: sort once all components registered, invoke once -@ccclass class OneOffInvoker extends LifeCycleInvoker { add (comp) { var order = comp.constructor._executionOrder; @@ -171,7 +169,6 @@ class OneOffInvoker extends LifeCycleInvoker { } // for update: sort every time new component registered, invoke many times -@ccclass class ReusableInvoker extends LifeCycleInvoker { add (comp) { var order = comp.constructor._executionOrder; @@ -271,7 +268,6 @@ function createInvokeImpl (funcOrCode, useDt) { /** * The Manager for Component's life-cycle methods. */ -@ccclass export default class ComponentScheduler { constructor() { this.unscheduleAll(); diff --git a/cocos/scene-graph/node-activator.js b/cocos/scene-graph/node-activator.js index 0dba810995..003f9cdbd9 100644 --- a/cocos/scene-graph/node-activator.js +++ b/cocos/scene-graph/node-activator.js @@ -53,7 +53,6 @@ var callOnLoad = CC_SUPPORT_JIT ? ('c.onLoad();c._objFlags|=' + IsOnLoadCalled) }; // for __preload: used internally, no sort -@ccclass class UnsortedInvoker extends CompScheduler.LifeCycleInvoker { add (comp) { this._zero.array.push(comp); @@ -130,7 +129,6 @@ function _onLoadInEditor (comp) { /** * The class used to perform activating and deactivating operations of node and component. */ - @ccclass export default class NodeActivator { constructor() { this.reset();