IE 11 and below does not support ES6 syntax we need to use some polyfills

This commit is contained in:
Hadi Nategh 2018-08-10 10:36:34 +02:00
parent 73686462d2
commit 3d9ee69f49

View File

@ -818,3 +818,9 @@ jQuery(function(){
}); });
}); });
// IE does not support ES6 therefore we need to use polyfill function
Number.isInteger = Number.isInteger || function(value) {
return typeof value === 'number' &&
isFinite(value) &&
Math.floor(value) === value;
};