javascript - Is viewInstance.undelegateEvents() the same as $(this.el).unbind()? -
is viewinstance.undelegateevents()
same jquery's $(this.el).unbind()
?
do function same way, in removing events view?
from http://backbonejs.org/docs/backbone.html#section-131
undelegateevents: function() { this.$el.unbind('.delegateevents' + this.cid); },
so, identical. undelegateevents
method scopes undelegation events backbone view had explicitly set delegateevents
method, using declarative events
configuration on view.
Comments
Post a Comment