Explorar o código

Fix promise polyfill

David Catuhe %!s(int64=7) %!d(string=hai) anos
pai
achega
fd87867e04
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {