igorlino / elevatezoom-plus

Enhanced elevateZoom - A jQuery image zoom plugin
http://igorlino.github.io/elevatezoom-plus/
MIT License
162 stars 78 forks source link

Internet Explorer: Number.isInteger not defined #43

Closed damianroszyk closed 8 years ago

damianroszyk commented 8 years ago

https://github.com/igorlino/elevatezoom-plus/blob/master/src/jquery.ez-plus.js#L1119

reference: http://caniuse.com/#feat=es6-number maybe a polyfill for this issue ?

sergeh commented 8 years ago

adding this polyfill fixes the issue

Number.isInteger = Number.isInteger || function(value) {
    return typeof value === "number" &&
           isFinite(value) &&
           Math.floor(value) === value;
};