From 8801d9b42c1da2cf969a5f620263099a6aef8a99 Mon Sep 17 00:00:00 2001 From: Raynos Date: Fri, 28 Nov 2014 01:39:51 -0800 Subject: [PATCH] minor cleanup --- examples/todomvc/todo-app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/todomvc/todo-app.js b/examples/todomvc/todo-app.js index 42b6196..bf5b689 100644 --- a/examples/todomvc/todo-app.js +++ b/examples/todomvc/todo-app.js @@ -57,7 +57,7 @@ function add(state, data) { function clearCompleted(state) { Object.keys(state.todos).forEach(function clear(key) { if (state.todos[key].completed()) { - destroy(state, { id: state.todos[key].id() }); + destroy(state, state.todos[key]()); } }); }