@ -28,7 +28,6 @@ var Whisper = Whisper || {};
initialize: function() {
this.listenTo(this.collection, 'add', this.addOne);
this.listenTo(this.collection, 'reset', this.addAll);
},
addOne: function(model) {
@ -53,7 +53,9 @@
this.$el.find('.attachments').append(
this.model.get('attachments').map(function(attachment) {
return new Whisper.AttachmentView({model: attachment}).render().el;
return new Whisper.AttachmentView({
model: attachment
}).render().el;
})
);