Getting Started 2: Clear Completed Todos no longer works
jonathan opened this issue · comments
When switching over to using an SC.Store, removeObject in clearCompletedTodos no longer works.
Thank you for the bug report! This should be fixed by this commit in SproutCore: sproutcore/sproutcore@6d6ffcf
Will try to release a new gem soon. You can checkout SproutCore's master branch from Git by following these steps:
http://www.veebsbraindump.com/2010/09/using-the-latest-sproutcore-code-from-the-master-branch/
This is not fixed at all. I don't know if the removeObject
is the right method to use, but using latest HEAD, I still get:
uncaught exception: SC.Error:sc216:SC.RecordArray is not editable (-1)
See the comments in issue #71 about solutions found, like for example
clearCompletedTodos: function() {
this.filterProperty('isDone', true).forEach(function(todo) {
todo.destroy();
}, this);
},
So is there still a bug, or the documentation should be fixed?