Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@eviltester
Created December 11, 2017 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eviltester/8405b63339acdf61a68bb8c128815c97 to your computer and use it in GitHub Desktop.
Save eviltester/8405b63339acdf61a68bb8c128815c97 to your computer and use it in GitHub Desktop.
Delete Todo Items in the TodoMVC application
for (x = app.todos.models.length - 1; x >= 0; x--) {
app.todos.models[x].destroy()
}
@eviltester
Copy link
Author

The todoMVC backbone app is here http://todomvc.com/examples/backbone/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment