diff --git a/4chan_x.user.js b/4chan_x.user.js index ae20c6d3c..b8777fa53 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -388,6 +388,7 @@ cb = _ref[_i]; cb.call(this); } + return delete this.callbacks; }, onabort: function() { return delete reqs[url]; diff --git a/script.coffee b/script.coffee index 89eddf2de..d99f05cd0 100644 --- a/script.coffee +++ b/script.coffee @@ -306,7 +306,7 @@ $.extend $, req = $.ajax url, onload: -> cb.call @ for cb in @callbacks - return + delete @callbacks onabort: -> delete reqs[url] onerror: -> delete reqs[url] req.callbacks = [cb]