Permalink
Browse files

Fixed scope of the canceller is from becoming the window

  • Loading branch information...
1 parent 61465e9 commit 1bedae3834d3c81592b51414cf34724592aa3e1b Tessei Yosida committed Apr 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 jsdeferred.js
View
@@ -189,7 +189,7 @@ Deferred.prototype = {
* @return {Deferred} this
*/
cancel : function () {
- (this.canceller || function () {})();
+ (this.canceller || function () {}).apply(this);
return this.init();
},

0 comments on commit 1bedae3

Please sign in to comment.