var BuilderView = View.extend({ el: "#builderView", action: "/api/layout/", events: { }, initialize: function(){ this.info = new BuilderInfo ({ parent: this }) this.toolbar = new BuilderToolbar ({ parent: this }) this.settings = new BuilderSettings ({ parent: this }) }, load: function(name){ if (! name || name == "new") { this.ready({ isNew: true, _id: "new", name: "" }) return } name = sanitize(name) $.get(this.action + name, this.ready.bind(this)) }, ready: function(data){ this.settings.load(data) }, hideExtras: function(){ } })