Polyfill for Math.Log2 because Internet Explorer…

This commit is contained in:
Jenny Danzmayr 2018-11-26 02:19:58 +01:00
parent 9a2a9e9bef
commit 993ed7bcdb

View file

@ -26,6 +26,13 @@
originalPerformZoom.call(this); originalPerformZoom.call(this);
} }
}); });
/*
* Polyfill for Math.Log2 because Internet Explorer sucks
*/
Math.log2 = Math.log2 || function(x) {
return Math.log(x) * Math.LOG2E;
};
}()); }());
c3nav = { c3nav = {