Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 89e5d5c7afc8e2f1a27bdbd436dfd83dc36fc3b3 1 parent f3b24e6
@passy passy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  architecture-examples/backbone/js/collections/todos.js
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.