Commits

Daniel Roberts committed b6264cc Draft

Fixed inconsistency with state storage.

Comments (0)

Files changed (1)

             }
         }
         DeferredCollection.prototype.resolve = function resolve() {
-            this.promise.state = "resolved";
+            this.state = "resolved";
             for (var i = 0; i < this.promise.resolveObservers.length; i++) {
                 this.promise.resolveObservers[i](this.promise);
             }
         }
         DeferredCollection.prototype.reject = function reject(e) {
-            this.promise.state = "rejected";
+            this.state = "rejected";
             for (var i = 0; i < this.promise.rejectObservers.length; i++) {
                 this.promise.rejectObservers[i](e);
             }