var IndexView = View.extend({ events: { }, action: "/api/index", initialize: function(opt){ // opt.parent = parent this.hootbox = new HootBox ({ parent: this }) this.threadbox = new ThreadBox ({ parent: this, latest: true, welcome: true, }) this.lastlog = new LastLog ({ parent: this }) this.load() }, load: function(){ $.get(this.action, this.populate.bind(this)) }, populate: function(data){ this.hootbox.load(data.hootbox) this.threadbox.load(data) this.lastlog.load(data.lastlog) }, success: function(){ window.location.href = "/index" }, })