New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding issue using prefixed #1014

Closed
gabrielvjk opened this Issue Aug 8, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@gabrielvjk

gabrielvjk commented Aug 8, 2013

I dont know if this issue has been submited yet but if you call Modernizr.prefixed in objects that does not support binding javascript generates an exception.

Uncaught TypeError: Object function xxx() { [native code] } has no method 'bind'

Fix on method testDOMProps

if (is(item, 'function')){
    if (item.bind)
        return item.bind(elem || obj);
    else
        return item;
}
@ryanseddon

This comment has been minimized.

Member

ryanseddon commented Aug 9, 2013

This has been fixed and will ship in v3 see line#19 in testDOMProps.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment