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:
lilia 2014-11-16 15:30:40 -08:00
parent 470346c9c4
commit c0681beca7
6 changed files with 99 additions and 72 deletions

View file

@ -19,6 +19,7 @@ var Whisper = Whisper || {};
var view = new this.itemView({model: model});
this.$el.prepend(view.render().el);
}, this);
this.scrollToBottom();
},
});
})();