Commit abd9920e by Ned Batchelder Committed by GitHub

Merge pull request #13395 from edx/bjacobel/jqxhr-eucalyptus

Fix discussions error with unabortable jqXHRs (Eucalyptus)
parents 04e99641 d3ed1122
......@@ -210,7 +210,10 @@
};
DiscussionThreadView.prototype.cleanup = function() {
if (this.responsesRequest) {
// jQuery.ajax after 1.5 returns a jqXHR which doesn't implement .abort
// but I don't feel confident enough about what's going on here to remove this code
// so just check to make sure we can abort before we try to
if (this.responsesRequest && this.responsesRequest.abort) {
return this.responsesRequest.abort();
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment