Browse files

support for grabbing value from promise without triggering applyOps.

  • Loading branch information...
1 parent db803c9 commit 9eaac8334d48f46f092d2aafc738cdaba5704ca9 @swannodette swannodette committed Sep 4, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 Promises.js
View
4 Promises.js
@@ -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;
},

0 comments on commit 9eaac83

Please sign in to comment.