Merge pull request #13200 from edx/bjacobel/abort-discussion-request
Fix discussions error with unabortable jqXHRs
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user