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

Cleanup

parent 7507f85e
...@@ -33,7 +33,6 @@ let task_views = [] ...@@ -33,7 +33,6 @@ let task_views = []
let list = document.querySelector("task-list") let list = document.querySelector("task-list")
class TaskView { class TaskView {
static template = ` static template = `
<input type="checkbox" name="done"/> <input type="checkbox" name="done"/>
...@@ -56,7 +55,6 @@ class TaskView { ...@@ -56,7 +55,6 @@ class TaskView {
this.fields.done.addEventListener("change", () => { this.fields.done.addEventListener("change", () => {
this.task.done = this.fields.done.checked this.task.done = this.fields.done.checked
}) })
} }
update() { update() {
...@@ -112,7 +110,6 @@ class DetailTaskView { ...@@ -112,7 +110,6 @@ class DetailTaskView {
let detail_view = new DetailTaskView(document.querySelector("task-detail")) let detail_view = new DetailTaskView(document.querySelector("task-detail"))
let addTask = function(task){ let addTask = function(task){
let view = new TaskView(task) let view = new TaskView(task)
view.element.addEventListener("click", () => detail_view.task = 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