I know we document it, but it’s pretty hidden and might surprise some people. Also it could cause the fn.bind detect to fail (haven’t checked this though) – and generally I don’t think Modernizr should be changing the environment that low down, certainly not without an explicit opt-in.
It was added way back in #478, but that ticket ended up just discussing the API for prefixed() and didn’t discuss whether to polyfill or implement as a library function.
Also relevant: this chap reckons polyfills shouldn’t be AMD dependencies – and I think I agree. Maybe.
Yep makes sense to me. Good one.
Bah, I removed them but failed to commit/push! Done.
Left over debugging removed.
Should we have a check for bind and use it if available otherwise fallback to this.
That sounds like the kind of thing a feature detection library would do, yes. I’ll update the PR.
Change `fnBind` to a normal lib function instead of a polyfill
Removing Function.bind unit test
Removing unneded global declaration
Removing debug statements
Using native fn.bind if available
separated the functions, so it's more like #1278. should be faster in…