todomvc: Sort todos in display by ID
This commit is contained in:
parent
7a759de5a1
commit
9e673c1588
|
@ -65,7 +65,8 @@ function addTodo(title) {
|
|||
id: this.id,
|
||||
checked: this.completed ? "checked" : "",
|
||||
title: this.title
|
||||
}));
|
||||
}),
|
||||
this.id);
|
||||
|
||||
on message this.ui.event('.toggle', 'change', $e) {
|
||||
this.completed = e.target.checked;
|
||||
|
|
Loading…
Reference in New Issue