Commit 0bb8f1f2 authored by Tianxiang Chen's avatar Tianxiang Chen

improve riotjs example

remove unnecessary update()
parent 415ee84d
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
saveTodos() { saveTodos() {
todoStorage.save(self.todos); todoStorage.save(self.todos);
self.update();
}; };
filteredTodos() { filteredTodos() {
...@@ -85,7 +84,6 @@ ...@@ -85,7 +84,6 @@
self.todos.splice(self.todos.indexOf(t), 1); self.todos.splice(self.todos.indexOf(t), 1);
} }
}); });
self.update();
}; };
toggleAll(e) { toggleAll(e) {
......
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