Fix For clearCompletedTasks in todoListController #82

merged 1 commit into from May 23, 2011


None yet

2 participants


As I was running through Part 2 of the Getting Started guide, I noticed that the "Clear Completed Tasks" button stopped functioning after updating Todos.Todo to be instances of SC.Record instead of SC.Object.

To fix this, I changed the clearCompletedTodos function in the todoListController to call item.destroy() on each with its isDone property set. I also updated the surrounding copy to reflect this change.

Ryan Cook update to include fix for clearCompletedTasks in todoListController n…
…ot functioning after updating Todo to be SC.Record instead of SC.Object
@tomdale tomdale merged commit f54ed3c into sproutcore:master May 23, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment