فهرست منبع

Fix spread operator

David Catuhe 5 سال پیش
والد
کامیت
9623405d16
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/sceneComponent.ts

+ 2 - 2
src/sceneComponent.ts

@@ -201,7 +201,7 @@ export type PointerMoveStageAction = (unTranslatedPointerX: number, unTranslated
 export type PointerUpDownStageAction = (unTranslatedPointerX: number, unTranslatedPointerY: number, pickResult: Nullable<PickingInfo>, evt: PointerEvent) => Nullable<PickingInfo>;
 
 /**
- * Repressentation of a stage in the scene (Basically a list of ordered steps)
+ * Representation of a stage in the scene (Basically a list of ordered steps)
  * @hidden
  */
 export class Stage<T extends Function> extends Array<{ index: number, component: ISceneComponent, action: T }> {
@@ -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);
     }
 
     /**