IE9 chart page fixes

This commit is contained in:
emanuele-f 2019-10-09 10:53:47 +02:00
parent 8f33e55a3e
commit b47e4cc071
3 changed files with 13 additions and 3 deletions

View file

@ -2,7 +2,17 @@
'use strict';
function intoSequence(n) {
return Array.from(Array(n).keys());
if((Array.prototype.from) && (Array.prototype.keys)) {
// Not compatible with IE9
return Array.from(Array(n).keys());
} else {
var arr = Array(n);
for(i=0; i<n; i++)
arr[i] = i;
return(arr);
}
}
var _math = {};