I would be grateful for any performance suggestions for the "click" event in the JSFiddle provided.
The idea is to improve performance when changing multiple observables at once.
I was unable to find any documentation as to pausing and resuming update notifications in a batch fashion.
$("#all").click(function(){
var tasks = ko.dataFor($("#tasks")[0]).tasks(),
checked = this.checked;
//TODO: performance? Batch changes?
for(var i = 0, l = tasks.length; i<l; i++){
tasks[i].done( !!checked );
}
});