Permalink
Browse files

Changed namespace for BulkDataSource; commitRecords when "Mark All as…

… Done" toggled
  • Loading branch information...
drnic committed Jun 11, 2011
1 parent 4240362 commit 93553cc354dbebf793b9d00a292d66aff95fe5ba
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/sproutcore/apps/todos/todos.js
@@ -1,5 +1,5 @@
Todos = SC.Application.create({
- store: SC.Store.create().from('SC.BulkDataSource')
+ store: SC.Store.create().from('BulkApi.BulkDataSource')
});
Todos.store.commitRecordsAutomatically = NO;
@@ -56,6 +56,7 @@ Todos.todoListController = SC.ArrayController.create({
allAreDone: function(key, value) {
if (value !== undefined) {
this.setEach('isDone', value);
+ Todos.store.commitRecords();
return value;
} else {
return this.get('length') && this.everyProperty('isDone', true);

0 comments on commit 93553cc

Please sign in to comment.