cho45 / jsdeferred

Asynchronous library in JavaScript. Standalone and Compact.
http://cho45.stfuawsc.com/jsdeferred/
332 stars 48 forks source link

Fixed scope of the canceller is from becoming the window #25

Closed teyosh closed 11 years ago

teyosh commented 11 years ago

cancel時、cancellerのスコープがwindowになってしまうので修正しました。

var d = new Deferred();
d.canceller = function(){
  console.log(this); //=> window
}
d.cancel();
cho45 commented 11 years ago

Thank you, merged!