Commit fe4e5f99 authored by Pascal Hartig's avatar Pascal Hartig

Merge pull request #915 from ando19721226/knockout-upgrade

Update knockout.js sample to use "rateLimit" #914
parents d5a6ebb2 faca1293
...@@ -102,7 +102,7 @@ define([ ...@@ -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 // 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)); window.localStorage.setItem(g.localStorageItem, ko.toJSON(self.todos));
}).extend({ }).extend({
throttle: 500 rateLimit: { timeout: 500, method: 'notifyWhenChangesStop' }
}); // save at most twice per second }); // 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