Fix list_view.js and message_view.js whitespace

This commit is contained in:
lilia 2015-02-17 23:58:00 -08:00
parent 61581bae7f
commit 1c589f2fad
2 changed files with 55 additions and 54 deletions

View file

@ -28,11 +28,10 @@ var Whisper = Whisper || {};
initialize: function() {
this.listenTo(this.collection, 'add', this.addOne);
this.listenTo(this.collection, 'reset', this.addAll);
},
addOne: function(model) {
if (this.itemView) {
if (this.itemView) {
var view = new this.itemView({model: model});
this.$el.append(view.render().el);
this.$el.trigger('add');