Skip to content

Instantly share code, notes, and snippets.

@owainlewis
Created February 17, 2014 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owainlewis/9059012 to your computer and use it in GitHub Desktop.
Save owainlewis/9059012 to your computer and use it in GitHub Desktop.
var ChannelView = Backbone.View.extend({
initialize: function() {
this.channel = new Channel({id: this.id});
this.channel.events.fetch().done(_.bind(function(){
this.render();
}, this));
},
render: function() {
this.channel.events.forEach(function(e) {
console.log(e.get("title"));
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment