commit
6cc7c7adf0
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ function countRemaining() {
|
||||||
}
|
}
|
||||||
function clear() {
|
function clear() {
|
||||||
for (var i = 0; i < todos.length; i++) {
|
for (var i = 0; i < todos.length; i++) {
|
||||||
if (todos[i].completed) destroy(todos[i])
|
if (todos[i].completed) destroy(todos[i--])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue