We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 54f1f616 authored by Alessio Zampatti's avatar Alessio Zampatti Committed by cyattilakiss

Fix for IE11 and older browsers (#536)

* Fix for IE11 and older browsers
parent 18666122
...@@ -32,7 +32,7 @@ define( ...@@ -32,7 +32,7 @@ define(
/** /**
* Retrieve the list of available payment methods from the server * Retrieve the list of available payment methods from the server
*/ */
retrieveAvailablePaymentMethods: function (callback = null) { retrieveAvailablePaymentMethods: function (callback) {
var self = this; var self = this;
// retrieve payment methods // retrieve payment methods
...@@ -56,7 +56,7 @@ define( ...@@ -56,7 +56,7 @@ define(
).done( ).done(
function (response) { function (response) {
self.setPaymentMethods(response); self.setPaymentMethods(response);
if (callback !== null) { if (callback) {
callback(); callback();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment