diff --git a/examples/todomvc/todomvc.js b/examples/todomvc/todomvc.js index 78a646ec..58136282 100644 --- a/examples/todomvc/todomvc.js +++ b/examples/todomvc/todomvc.js @@ -39,7 +39,7 @@ function countRemaining() { } function clear() { for (var i = 0; i < todos.length; i++) { - if (todos[i].completed) destroy(todos[i]) + if (todos[i].completed) destroy(todos[i--]) } }