Created
February 10, 2015 14:42
-
-
Save cmaas/a95b1b573168ae24a2fb to your computer and use it in GitHub Desktop.
Knockout: Dirty Flag / Dirty Tracking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dirty tracking | |
// original: https://github.com/tekpub/knockout-cart/blob/master/src/cart.js | |
ko.computed(function(){ | |
// do things like: | |
// localStorage.setItem("tekpubCart",ko.toJSON(self.items)); | |
}).extend({throttle : 1}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment