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