(input, name)
| 44 | } |
| 45 | |
| 46 | edit(input, name){ |
| 47 | if(input.disabled == true){ |
| 48 | input.disabled = !input.disabled; |
| 49 | } |
| 50 | else{ |
| 51 | input.disabled = !input.disabled; |
| 52 | let indexof = todos.indexOf(name); |
| 53 | todos[indexof] = input.value; |
| 54 | window.localStorage.setItem("todos", JSON.stringify(todos)); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | remove(itemBox, name){ |
| 59 | itemBox.parentNode.removeChild(itemBox); |
no outgoing calls
no test coverage detected