Merge branch 'rewrite' of github.com:lhorie/mithril.js into rewrite
This commit is contained in:
commit
a9cad2c45b
1 changed files with 1 additions and 1 deletions
|
|
@ -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--])
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue