javascript - backbone.js events are not bound after model change? -


here's code in view initialize:

  var self =   this.model.bind('change', function () {     self.render();   }); 

i have bunch of events defined:

events: {   "click #blah": "blah", }, 

but after changing model , rerendering view events no longer bound?

i can bind them putting this.delegateevents() in render, don't think that's doing correctly.

am doing wrong? thanks.

did set el property in view? events delegated el.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -