ソースを参照

Fix promise polyfill

David Catuhe 7 年 前
コミット
fd87867e04
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/Tools/babylon.promise.ts

+ 1 - 1
src/Tools/babylon.promise.ts

@@ -106,7 +106,7 @@ module BABYLON {
         }       
 
         private _moveChildren(children: InternalPromise<T>[]): void {
-            this._children = children.splice(0, children.length);
+            this._children.push(...children.splice(0, children.length));
 
             if (this.isFulfilled) {
                 for (var child of this._children) {