Closed chyngyz closed 8 years ago
Thanks!
I’m not including detection in v2 at this time. I’m open to including it, but I recommend folks use Modernizr or their own detection. Think I should change this? We can open a new issue.
https://github.com/jonathantneal/flexibility/blob/master/SUPPORT.md#detecting-flexbox-support
Nah I think using modernizr for the detection is the best way to do it. No need to add extra weight to handle detection when modern browsers shouldn't be loading the script at all in the first place.
Is there a reason you haven't built the window resize functionality you have documented in the support md file into the main script itself?
If there aren't any common problems that occur from the window resize script, it should just be applied by default.
ieVersion()
returns false for non-ie browsers, thusif (!flexibility.detect() || ieVersion() <= 9)
becomes true anddocument.attachEvent
givesUncaught TypeError: document.attachEvent is not a function
error. It should beif (!flexibility.detect() && ieVersion() <= 9)
, I guess ) Tested in IE8-9, tests work fine.