Skip to content

element.bind is not a function with jquery.slim version #3035

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

Closed
navarroaxel opened this issue Sep 25, 2016 · 1 comment
Closed

element.bind is not a function with jquery.slim version #3035

navarroaxel opened this issue Sep 25, 2016 · 1 comment
Labels
Milestone

Comments

@navarroaxel
Copy link

navarroaxel commented Sep 25, 2016

The .bind() method has been deprecaten in version 3.0+.

But in the slim build of jQuery the method has been removed directly. So, the uiSref directive fails when tries to attach a handler to the click event.

Plunker with the error in the console: https://plnkr.co/edit/2dceELuWmG2wq3027gwD

This only occurs with the slim build. This is not failing with jqLite or jQuery full build.

Can we add support to the slim build? jqLite also supports the `.on()`` method. We just need to replace the bind with the on and this issue is resolved.

@christopherthielen
Copy link
Contributor

Closed by #3036

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants