From 73b6ab81282a64af39928e79077d988d1c0c48af Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 10 Aug 2018 10:31:40 +0200 Subject: [PATCH] IE 11 and below does not support ES6 syntax we need to use some polyfills --- api/js/jsapi/jsapi.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/api/js/jsapi/jsapi.js b/api/js/jsapi/jsapi.js index 90802d0391..4bcf6f40d4 100644 --- a/api/js/jsapi/jsapi.js +++ b/api/js/jsapi/jsapi.js @@ -830,4 +830,11 @@ jQuery(function(){ jQuery(document).ready(function() { jQuery('head').append(''); -}) \ No newline at end of file +}) + +// 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; +}; \ No newline at end of file