I use muk_web_utils but in IE11 I have a issue with the file muk_web_utils/static/src/js/underscore.js where you use function default parameters.
Sadly it's not supported by IE: MDN web docs - Default parameters
What is your web navigator support policy?
I change the underscore.js file like in the example of the MDN web docs as follow:
_.mixin({
memoizeDebounce: function (func, wait, options) {
switch (arguments.length) {
case 0:
func;
case 1:
wait = 0;
case 2:
options = {};
default:
}
var mem = _.memoize(function () {
return _.debounce(func, wait, options)
}, options.resolver);
return function () {
mem.apply(this, arguments).apply(this, arguments)
}
}
});
_.mixin({
memoizeThrottle: function (func, wait, options) {
switch (arguments.length) {
case 0:
func;
case 1:
wait = 0;
case 2:
options = {};
default:
}
var mem = _.memoize(function () {
return _.throttle(func, wait, options)
}, options.resolver);
return function () {
mem.apply(this, arguments).apply(this, arguments)
}
}
});
_.mixin({
memoizeThrottle: function(func, wait, options) {
switch (arguments.length) {
case 0:
func;
case 1:
wait = 0;
case 2:
options = {};
default:
}
var mem = _.memoize(function() {
return _.throttle(func, wait, options)
}, options.resolver);
return function() {
mem.apply(this, arguments).apply(this, arguments)
}
}
});```
Hi,
I use muk_web_utils but in IE11 I have a issue with the file
muk_web_utils/static/src/js/underscore.js
where you use function default parameters. Sadly it's not supported by IE: MDN web docs - Default parametersWhat is your web navigator support policy?
I change the
underscore.js
file like in the example of the MDN web docs as follow: