Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support for grabbing value from promise without triggering applyOps.

  • Loading branch information...
commit 9eaac8334d48f46f092d2aafc738cdaba5704ca9 1 parent db803c9
David Nolen swannodette authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Promises.js
4 Promises.js
View
@@ -188,8 +188,8 @@ var Promise = new Class({
}
},
- value: function() {
- if(this.hasOps()) this.__value = this.applyOps(this.__value);
+ value: function(applyOps) {
+ if(this.hasOps() && applyOps !== false) this.__value = this.applyOps(this.__value);
return this.__value;
},
Please sign in to comment.
Something went wrong with that request. Please try again.