Skip to content

Commit 55388e1

Browse files
committed
Use Collection#where for TodoList#remaining
Using `Collection#where` for both speed and symmetry.
1 parent bfc6d74 commit 55388e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/todos/todos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $(function(){
4848

4949
// Filter down the list to only todo items that are still not finished.
5050
remaining: function() {
51-
return this.without.apply(this, this.done());
51+
return this.where({done: false});
5252
},
5353

5454
// We keep the Todos in sequential order, despite being saved by unordered

0 commit comments

Comments
 (0)