--- a/demo.html Sat Jul 01 07:34:15 2017 +0800
+++ b/demo.html Sat Jul 01 07:50:44 2017 +0800
var CollectionView = Backbone.View.extend({
- initialize: function(options) {
+ initialize: function() {
this.collection.on('add change remove reset', this.render, this);
var shardRead = new Backbone.Shard({collection: col, filter: function(book) { return book.get('read'); } });
var shardUnread = new Backbone.Shard({collection: col, filter: function(book) { return !book.get('read'); } });
+ /* jshint nonew: false */