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

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

Projects

None yet

2 participants

@navarroaxel
navarroaxel commented Sep 25, 2016 edited

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 christopherthielen added this to the 0.3.2 milestone Sep 28, 2016
@christopherthielen
Contributor

Closed by #3036

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