Skip to content

Commit a145414

Browse files
committed
Grid todo-app demo: Fix store usage
1 parent 8c73496 commit a145414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grid-editing/todo-app.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727

2828
// TODO rewrite to do incremental rendering on each todo item
2929
$( [ todos ] ).bind("insert remove replaceAll", function() {
30-
store.save( todos );
30+
store.save();
3131
$(store).trigger( "update" );
3232
})
3333
function update( index, checked ) {
3434
todos[ index ].done = checked;
3535
updateAllChecked();
36-
store.save( todos );
36+
store.save();
3737
}
3838
function updateAllChecked() {
3939
var allChecked = todos.length && $.grep( todos, function( item, index ) {

0 commit comments

Comments
 (0)