wnr / element-resize-detector

Optimized cross-browser resize listener for elements.
MIT License
1.32k stars 118 forks source link

Handle Edge as an IE browser. #19

Closed tregusti closed 9 years ago

tregusti commented 9 years ago

Edge was handled as a non IE browser, and no resize events was triggered. But when handling Edge as an IE browser, events are triggered again.

wnr commented 9 years ago

Good catch, thanks!

Before merge: Is there any particular reason it is " edge/" instead of "edge"?

tregusti commented 9 years ago

Just being a little more specific, both catching edge as a separate word, but also catch the format of browser/version.

It (and the other checks) could easily have been done even more specific with a regexp. But this is probably enough.

wnr commented 9 years ago

Right, makes sense.