var EditorView = View.extend({ el: "#editorView", projecttAction: "/api/projects/", layoutAction: "/api/layouts/", events: { }, initialize: function(){ this.toolbar = new EditorToolbar ({ parent: this }) this.settings = new EditorSettings ({ parent: this }) this.mediaViewer = new MediaViewer ({ parent: this }) this.mediaUpload = new MediaUpload ({ parent: this }) this.wallpaperPicker = new WallpaperPicker ({ parent: this }) this.lightControl = new LightControl ({ parent: this }) }, load: function(name){ }, loadLayout: function(layout){ layout = sanitize(layout) $.get(this.layoutAction + layout, $.proxy(this.ready, this)) }, ready: function(data){ $("#map").hide() this.settings.loadLayout(data) }, })