Commit ab04f537 by Brian Jacobel Committed by GitHub

Merge pull request #13200 from edx/bjacobel/abort-discussion-request

Fix discussions error with unabortable jqXHRs
parents 71b0ea8f 994c6caa
...@@ -213,7 +213,10 @@ ...@@ -213,7 +213,10 @@
}; };
DiscussionThreadView.prototype.cleanup = function() { 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(); 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