Permalink
Browse files

minor refactoring

  • Loading branch information...
1 parent bdff452 commit 789c4ff5125a35d099d4ec53c8f940b30a2ad0df @ashish01 committed May 24, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 knockout-todos.html
View
@@ -88,10 +88,7 @@
},
removeCompleted: function (event) {
- var completed = viewModel.todos().filter(function (el) {
- return el.done() === true;
- });
- viewModel.todos.removeAll(completed);
+ viewModel.todos.removeAll(viewModel.done());
}
};

0 comments on commit 789c4ff

Please sign in to comment.