Commit 759fdc3e authored by Milan Iliev's avatar Milan Iliev

Cleanup

parent 7507f85e
......@@ -33,7 +33,6 @@ let task_views = []
let list = document.querySelector("task-list")
class TaskView {
static template = `
<input type="checkbox" name="done"/>
......@@ -56,7 +55,6 @@ class TaskView {
this.fields.done.addEventListener("change", () => {
this.task.done = this.fields.done.checked
})
}
update() {
......@@ -112,7 +110,6 @@ class DetailTaskView {
let detail_view = new DetailTaskView(document.querySelector("task-detail"))
let addTask = function(task){
let view = new TaskView(task)
view.element.addEventListener("click", () => detail_view.task = task )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment