var BlogView = View.extend({ data: null, loaded: false, initialize: function(){ this.loader = new Loader () this.fetch() }, fetch: function(){ $.ajax({ method: "GET", url: "http://stone.sup.land/db.json", success: this.success.bind(this), cache: true, }) }, success: function(data){ this.loaded = true this.data = data this.loader.preloadImage(data.archive[0].image.url, function(img){ app.archive.populate(data.archive) }) this.loader.preloadImage(data.hub[0].image.url, function(img){ app.hub.populate(data.hub) }) this.loader.preloadImage(data.story[0].image.url, function(img){ app.story.populate(data.story) }) }, })