Consolidate message callbacks
Register the runtime callback at the top level view rather than having each conversation view register independently. Also refactors Layout into InboxView.
This commit is contained in:
parent
470346c9c4
commit
c0681beca7
6 changed files with 99 additions and 72 deletions
|
@ -19,6 +19,7 @@ var Whisper = Whisper || {};
|
|||
var view = new this.itemView({model: model});
|
||||
this.$el.prepend(view.render().el);
|
||||
}, this);
|
||||
this.scrollToBottom();
|
||||
},
|
||||
});
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue