Remove unneeded listeners
This commit is contained in:
parent
0463e385e8
commit
5a302271b3
1 changed files with 1 additions and 2 deletions
|
@ -26,10 +26,9 @@ var Whisper = Whisper || {};
|
||||||
tagName: 'ul',
|
tagName: 'ul',
|
||||||
itemView: Backbone.View,
|
itemView: Backbone.View,
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
this.listenTo(this.collection, 'change', this.render); // auto update
|
|
||||||
this.listenTo(this.collection, 'add', this.addOne);
|
this.listenTo(this.collection, 'add', this.addOne);
|
||||||
this.listenTo(this.collection, 'reset', this.addAll);
|
this.listenTo(this.collection, 'reset', this.addAll);
|
||||||
this.listenTo(this.collection, 'all', this.render);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
addOne: function(model) {
|
addOne: function(model) {
|
||||||
|
|
Loading…
Reference in a new issue