mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Remove useless ccclass decorator (#3239)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user