We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c81cc69 commit 28cf93dCopy full SHA for 28cf93d
app/code/Magento/Checkout/view/frontend/web/js/view/payment.js
@@ -83,11 +83,11 @@ define(
83
return info;
84
},
85
getPaymentMethodCallbacks: function() {
86
- var callbacks = [this.getActiveMethodView().afterSave];
+ var callbacks = [this.getActiveMethodView().afterSave.bind(this.getActiveMethodView())];
87
88
_.each(this.getAdditionalMethods(), function(elem) {
89
if (elem.isActive()) {
90
- callbacks = _.union(callbacks, [elem.afterSave]);
+ callbacks = _.union(callbacks, [elem.afterSave.bind(elem)]);
91
}
92
});
93
0 commit comments