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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -