Merge pull request #2613 from gsamokovarov/todo-difference

Use Collection#where for TodoList#remaining
This commit is contained in:
brad dunbar
2013-06-13 08:52:06 -07:00

View File

@@ -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