Created
December 2, 2012 12:04
-
-
Save netikular/4188361 to your computer and use it in GitHub Desktop.
remove from a list
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
clearAll: function (e) { | |
e.preventDefault(); | |
var toRemove = this.collection.chain().filter(function(item){ | |
return item.get('IsCompleted'); | |
}).invoke('destroy'); | |
this.collection.remove(toRemove); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment