Commit 6ca9e0ed authored by ando19721226's avatar ando19721226

Update knockout.js sample to use "rateLimit"

In v3.1.0, new rate limiting functionality to have better control and flexibility over throttle/debounce scenarios.
parent 2d15d900
......@@ -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