Skip to content

Commit

Permalink
Use Collection#where for TodoList#remaining
Browse files Browse the repository at this point in the history
Using `Collection#where` for both speed and symmetry.
  • Loading branch information
gsamokovarov committed Jun 13, 2013
1 parent bfc6d74 commit 55388e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/todos/todos.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $(function(){

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

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

0 comments on commit 55388e1

Please sign in to comment.