make setupBinds make even more sense

This commit is contained in:
Maxwell Salzberg 2012-03-14 11:16:25 -07:00
parent 1d5bc6be70
commit 7aa906b463

View file

@ -11,13 +11,13 @@ app.views.CommentStream = app.views.Base.extend({
},
initialize: function(options) {
this.model.comments.bind('add', this.appendComment, this);
this.commentTemplate = options.commentTemplate;
this.setupBindings();
},
setupBindings: function() {
this.model.comments.bind('add', this.appendComment, this);
this.model.bind("commentsExpanded", this.render, this);
},