Skip to content

Instantly share code, notes, and snippets.

@raine
Created June 20, 2013 20:39
Show Gist options
  • Select an option

  • Save raine/5826431 to your computer and use it in GitHub Desktop.

Select an option

Save raine/5826431 to your computer and use it in GitHub Desktop.
app.Stats = Marionette.ItemView.extend({
initialize: function() {
this.stats = Stats.get();
},
render: function(obj) {
if (!obj) {
return this.stats.done(this.render.bind(this));
}
return this;
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment