Skip to content

Instantly share code, notes, and snippets.

@sporkd
Created March 6, 2012 20:14
Show Gist options
  • Save sporkd/1988726 to your computer and use it in GitHub Desktop.
Save sporkd/1988726 to your computer and use it in GitHub Desktop.
Backbone.js add nested view example
addNested: function(model) {
var view = new View.Nested({ model: model });
this.$("#nested-view").html(view.render().el);
// Then I can safely init stuff like chosen.js
view.$("select").chosen();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment