Browse Source

Fix promise polyfill

David Catuhe 7 năm trước cách đây
mục cha
commit
fd87867e04
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {