Skip to content

Commit 9b28fe2

Browse files
author
Carlos Lizaga
committed
that - this consistency and splat complete function to be Jasmine friendly.
1 parent 2adf9e8 commit 9b28fe2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/web/mage/collapsible.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ define([
519519
that = this;
520520

521521
if (url) {
522-
this.xhr = $.get({
522+
that.xhr = $.get({
523523
url: url,
524524
dataType: 'html'
525525
}, function () {
@@ -535,7 +535,8 @@ define([
535535
setTimeout(function () {
536536
that.content.html(response);
537537
}, 1);
538-
}).complete(function (jqXHR, status) {
538+
});
539+
that.xhr.complete(function (jqXHR, status) {
539540
setTimeout(function () {
540541
if (status === 'abort') {
541542
that.content.stop(false, true);

0 commit comments

Comments
 (0)