FlipClock icon indicating copy to clipboard operation
FlipClock copied to clipboard

isConstructor() check fails in IE11

Open thomasdeater opened this issue 6 years ago • 0 comments

Using the js-es6 branch I discovered that the isConstructor() check fails in IE11 because Function.name is not supported.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name

I implemented a polyfill found here:

https://stackoverflow.com/a/17056530

Patching flipclock would probably be a better resolution, but as I'm using the npm package it was easier to add the polyfill.

thomasdeater avatar Dec 05 '19 19:12 thomasdeater