Skip to content

Commit

Permalink
that - this consistency and splat complete function to be Jasmine fri…
Browse files Browse the repository at this point in the history
…endly.
  • Loading branch information
Carlos Lizaga committed Nov 23, 2017
1 parent 2adf9e8 commit 9b28fe2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/web/mage/collapsible.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ define([
that = this;

if (url) {
this.xhr = $.get({
that.xhr = $.get({
url: url,
dataType: 'html'
}, function () {
Expand All @@ -535,7 +535,8 @@ define([
setTimeout(function () {
that.content.html(response);
}, 1);
}).complete(function (jqXHR, status) {
});
that.xhr.complete(function (jqXHR, status) {
setTimeout(function () {
if (status === 'abort') {
that.content.stop(false, true);
Expand Down

0 comments on commit 9b28fe2

Please sign in to comment.