Skip to content

Instantly share code, notes, and snippets.

@sporkd
Created March 6, 2012 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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