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

navarroaxel opened this Issue Sep 25, 2016 · 1 comment


None yet

2 participants

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

Closed by #3036

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