Commit faca1293 authored by ando19721226's avatar ando19721226

Update knockout.js sample to use "rateLimit" #914

In v3.1.0, new rate limiting functionality to have better control and flexibility over throttle/debounce scenarios.
parent 6ca9e0ed
......@@ -102,7 +102,7 @@ define([
// store a clean copy to local storage, which also creates a dependency on the observableArray and all observables in each item
window.localStorage.setItem(g.localStorageItem, ko.toJSON(self.todos));
}).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