class MyFilteredList extends Mn.CollectionView {
constructor(opts) {
this.tagName = 'ul';
this.childView = AuthorView;
this.filterModel = opts.filterModel;
super(opts);
this.listenTo(this.filterModel, 'change:filter', this.render);
}
filter(model, index, collection) {
return ~model.get('name').indexOf(
this.filterModel.get('filter')
)
}
};