Download:
child 32:5ef16c514b16
parent 30:42894d55dd12
31:a0a96213568e
Anton Shestakov <av6@dwimlabs.net>, Sat, 01 Jul 2017 07:50:44 +0800
demo: jshint caught me

1 файлов изменено, 3 вставок(+), 1 удалений(-) [+]
demo.html file | annotate | diff | comparison | revisions
--- a/demo.html Sat Jul 01 07:34:15 2017 +0800
+++ b/demo.html Sat Jul 01 07:50:44 2017 +0800
@@ -39,7 +39,7 @@
]);
var CollectionView = Backbone.View.extend({
- initialize: function(options) {
+ initialize: function() {
this.collection.on('add change remove reset', this.render, this);
this.render();
},
@@ -63,6 +63,8 @@
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 */
+
new CollectionView({
el: $('#collection'),
collection: col