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
Post a Comment