Commit d5a6ebb2 authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #914 from ando19721226/knockout-upgrade

Update knockout.js sample to use "rateLimit"
parents 2d15d900 6ca9e0ed
......@@ -178,7 +178,7 @@
// store a clean copy to local storage, which also creates a dependency on the observableArray and all observables in each item
localStorage.setItem('todos-knockoutjs', ko.toJSON(this.todos));
}.bind(this)).extend({
throttle: 500
rateLimit: { timeout: 500, method: 'notifyWhenChangesStop' }
}); // save at most twice per second
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment