mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Merge pull request #2613 from gsamokovarov/todo-difference
Use Collection#where for TodoList#remaining
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user