Created
December 11, 2017 10:25
-
-
Save eviltester/8405b63339acdf61a68bb8c128815c97 to your computer and use it in GitHub Desktop.
Delete Todo Items in the TodoMVC application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (x = app.todos.models.length - 1; x >= 0; x--) { | |
app.todos.models[x].destroy() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The todoMVC backbone app is here http://todomvc.com/examples/backbone/