Browse files

Fix backbone remaining items counter

This reverts commit 9d4b0b0.

The simplified function call changes the semantics of it. The signature of
without is: _.without(array, [*values]), which is why apply must be used here.
  • Loading branch information...
1 parent f3b24e6 commit 89e5d5c7afc8e2f1a27bdbd436dfd83dc36fc3b3 @passy committed Jan 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 architecture-examples/backbone/js/collections/todos.js
@@ -25,7 +25,7 @@ var app = app || {};
// Filter down the list to only todo items that are still not finished.
remaining: function() {
- return this.without(this.completed());
+ return this.without.apply( this, this.completed() );
// We keep the Todos in sequential order, despite being saved by unordered

0 comments on commit 89e5d5c

Please sign in to comment.