Skip to content

Commit

Permalink
support for grabbing value from promise without triggering applyOps.
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Sep 4, 2009
1 parent db803c9 commit 9eaac83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Promises.js
Expand Up @@ -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;
},

Expand Down

0 comments on commit 9eaac83

Please sign in to comment.