Let\'s say you are building a Twitter clone with Backbone.js. You have a collection of tweets. Each tweet is obviously an instance of the Tweet model.
You create an inst
I believe this is what you were looking for:
yourCollection.fetch({add: true})
Then, you can bind your collection view's render to the add event:
yourCollectionView.bind('add', this.render, this);
Though, if the render is heavy, you'll want to delay it with a timeout to avoid immediately calling it for every addition to the collection:
yourCollectionView.bind('add', this.delayedRender, this);
delayedRender: function() {
var self = this;
if (self.renderTimer) { clearTimeout(self.renderTimer); }
self.renderTimer = setTimeout(function() {
self.render();
self.renderTimer = null;
}, 300);
}