JPGygax68
7/13/2013 - 10:51 AM

Oz Katz' (thanks!) single-reflow Backbone collection render()

Oz Katz' (thanks!) single-reflow Backbone collection render()

render: function() {
  this.$el.empty();
  var container = document.createDocumentFragment();
  // render each subview, appending to our root element
  _.each(this._views, function(subview) {
    container.appendChild(subview.render().el)
  });
  this.$el.append(container);
}