David Catuhe 5 năm trước cách đây
mục cha
commit
01153db3b0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/sceneComponent.ts

+ 1 - 1
src/sceneComponent.ts

@@ -210,7 +210,7 @@ export class Stage<T extends Function> extends Array<{ index: number, component:
      * @param items The items to add.
      */
     private constructor(items?: { index: number, component: ISceneComponent, action: T }[]) {
-        super(<any>items);
+        super(...<any>items);
     }
 
     /**