Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor refactoring

  • Loading branch information...
commit 789c4ff5125a35d099d4ec53c8f940b30a2ad0df 1 parent bdff452
@ashish01 ashish01 authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 knockout-todos.html
View
5 knockout-todos.html
@@ -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());
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.