Permalink
Browse files

fix typo in promise.call

  • Loading branch information...
1 parent 30299d3 commit 1a72fb98bde1cfac3cc5be9937849a54468c1d6e @glongman glongman committed Oct 31, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 promise.js
View
@@ -95,7 +95,7 @@ Promise.prototype.put = function(propertyName, value){
Promise.prototype.call = function(functionName /*, args */){
return this.then(function(value){
- return value[propertyName].apply(value, Array.prototype.slice.call(arguments, 1));
+ return value[functionName].apply(value, Array.prototype.slice.call(arguments, 1));
});
};

0 comments on commit 1a72fb9

Please sign in to comment.