Created
March 6, 2012 20:14
-
-
Save sporkd/1988726 to your computer and use it in GitHub Desktop.
Backbone.js add nested view example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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