Permalink
Browse files

* Promises.js: fixed unscoped var

  • Loading branch information...
1 parent 2d5b04e commit 598cf82ef085de3f5448a36d8abb6b64715905a1 @swannodette swannodette committed Mar 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Promises.js
View
@@ -543,7 +543,7 @@ function promise(fn) {
unrealized.each(Function.msg('realize'));
var values = args.map(Promise.getValue);
this._current = decorator._wrapper;
- result = fn.apply(this, values);
+ var result = fn.apply(this, values);
this._current = temp;
return result;
}

0 comments on commit 598cf82

Please sign in to comment.