Binding issue using prefixed #1014

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

Projects

None yet

2 participants

@gabrielvjk

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
Member

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

@ryanseddon ryanseddon closed this Aug 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment