todomvc: Sort todos in display by ID

This commit is contained in:
Tony Garnock-Jones 2016-05-14 02:26:06 -04:00
parent 7a759de5a1
commit 9e673c1588
1 changed files with 2 additions and 1 deletions

View File

@ -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;