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,
|
id: this.id,
|
||||||
checked: this.completed ? "checked" : "",
|
checked: this.completed ? "checked" : "",
|
||||||
title: this.title
|
title: this.title
|
||||||
}));
|
}),
|
||||||
|
this.id);
|
||||||
|
|
||||||
on message this.ui.event('.toggle', 'change', $e) {
|
on message this.ui.event('.toggle', 'change', $e) {
|
||||||
this.completed = e.target.checked;
|
this.completed = e.target.checked;
|
||||||
|
|
Loading…
Reference in New Issue