浏览代码

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) {