Polyfill for Math.Log2 because Internet Explorer…
This commit is contained in:
parent
9a2a9e9bef
commit
993ed7bcdb
1 changed files with 7 additions and 0 deletions
|
@ -26,6 +26,13 @@
|
|||
originalPerformZoom.call(this);
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
* Polyfill for Math.Log2 because Internet Explorer sucks
|
||||
*/
|
||||
Math.log2 = Math.log2 || function(x) {
|
||||
return Math.log(x) * Math.LOG2E;
|
||||
};
|
||||
}());
|
||||
|
||||
c3nav = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue