Skip to content

Instantly share code, notes, and snippets.

@lawrencepit
Created August 16, 2008 03:08
Show Gist options
  • Save lawrencepit/5696 to your computer and use it in GitHub Desktop.
Save lawrencepit/5696 to your computer and use it in GitHub Desktop.
function main() {
SC.page.awake() ;
Todos.server.listFor(Todos.Task, {
order: 'position, title',
onSuccess: function(transport, cacheCode, tasks, count) {
Todos.tasksController.set('content', tasks) ;
}
}) ;
} ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment