Skip to content

Commit

Permalink
Simplify Backbone collection code.
Browse files Browse the repository at this point in the history
  • Loading branch information
maiwald committed Dec 14, 2012
1 parent 3746529 commit 9d4b0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion architecture-examples/backbone/js/collections/todos.js
Expand Up @@ -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.apply( this, this.completed() );
return this.without(this.completed());
},

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

2 comments on commit 9d4b0b0

@sindresorhus
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi #370

@maiwald
Copy link
Contributor Author

@maiwald maiwald commented on 9d4b0b0 Jan 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true. very sorry for that.

Please sign in to comment.