Bring a bugfix from discussions feature branch over

This commit is contained in:
Brian Jacobel
2016-08-09 10:54:38 -04:00
parent 9a367f64fd
commit 994c6caa79

View File

@@ -213,7 +213,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();
}
};