Is viewInstance.undelegateEvents() the same as jQuery's $(this.el).unbind()?
Do they function the same way, as in removing the events from the view?
From http://backbonejs.org/docs/backbone.html#section-131
undelegateEvents: function() {
this.$el.unbind('.delegateEvents' + this.cid);
},
So, they are nearly identical. But the undelegateEvents method scopes the undelegation to the events that the backbone view had explicitly set up with the delegateEvents method, using the declarative events configuration on the view.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With