David Catuhe 5 years ago
parent
commit
01153db3b0
1 changed files with 1 additions and 1 deletions
  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.
      * @param items The items to add.
      */
      */
     private constructor(items?: { index: number, component: ISceneComponent, action: T }[]) {
     private constructor(items?: { index: number, component: ISceneComponent, action: T }[]) {
-        super(<any>items);
+        super(...<any>items);
     }
     }
 
 
     /**
     /**