Skip to content

Commit c9f29b8

Browse files
authored
Use bind instead of self
1 parent b5045c4 commit c9f29b8

File tree

1 file changed

+3
-4
lines changed
  • app/code/Magento/Sales/view/adminhtml/web/order/create

1 file changed

+3
-4
lines changed

app/code/Magento/Sales/view/adminhtml/web/order/create/scripts.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,8 +1493,7 @@ define([
14931493
}
14941494

14951495
if (action === 'change') {
1496-
var self = this,
1497-
confirmText = message.replace(/%s/, customerGroupOption.text);
1496+
var confirmText = message.replace(/%s/, customerGroupOption.text);
14981497
confirmText = confirmText.replace(/%s/, currentCustomerGroupTitle);
14991498
confirm({
15001499
content: confirmText,
@@ -1503,8 +1502,8 @@ define([
15031502
$$('#' + groupIdHtmlId + ' option').each(function (o) {
15041503
o.selected = o.readAttribute('value') == groupId;
15051504
});
1506-
self.accountGroupChange();
1507-
}
1505+
this.accountGroupChange();
1506+
}.bind(this)
15081507
}
15091508
})
15101509
} else if (action === 'inform') {

0 commit comments

Comments
 (0)