make setupBinds make even more sense
This commit is contained in:
parent
1d5bc6be70
commit
7aa906b463
1 changed files with 1 additions and 1 deletions
|
|
@ -11,13 +11,13 @@ app.views.CommentStream = app.views.Base.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
this.model.comments.bind('add', this.appendComment, this);
|
|
||||||
this.commentTemplate = options.commentTemplate;
|
this.commentTemplate = options.commentTemplate;
|
||||||
|
|
||||||
this.setupBindings();
|
this.setupBindings();
|
||||||
},
|
},
|
||||||
|
|
||||||
setupBindings: function() {
|
setupBindings: function() {
|
||||||
|
this.model.comments.bind('add', this.appendComment, this);
|
||||||
this.model.bind("commentsExpanded", this.render, this);
|
this.model.bind("commentsExpanded", this.render, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue