Fix tests
This commit is contained in:
parent
d1c5b6da7a
commit
bf22da209f
5 changed files with 31 additions and 15 deletions
|
@ -14,11 +14,7 @@ var Whisper = Whisper || {};
|
|||
this.$el.scrollTop(this.el.scrollHeight);
|
||||
},
|
||||
addAll: function() {
|
||||
this.$el.html('');
|
||||
this.collection.each(function(model) {
|
||||
var view = new this.itemView({model: model});
|
||||
this.$el.prepend(view.render().el);
|
||||
}, this);
|
||||
Whisper.ListView.prototype.addAll.apply(this, arguments); // super()
|
||||
this.scrollToBottom();
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue