(index)
| 89 | |
| 90 | // delete todo |
| 91 | function deleteTask(index) { |
| 92 | var toDoItems = todoList.children; |
| 93 | |
| 94 | for (var i = 0; i < todoList.children.length; i++) { |
| 95 | if (toDoItems.item(i).id == index) { |
| 96 | toDoItems.item(i).remove(); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | saveToDoItems(); |
| 101 | } |
| 102 | |
| 103 | // delete all todos |
| 104 | deleteAllBtn.onclick = () => { |
nothing calls this directly
no test coverage detected