knockout.wrap
Wrap a function and notify any subscribers when any observables inside have changed.
(Basically a ko.computed that doesn't actually calculate on change)
Example
var a = ko b = ko; { console;} var wrapped = ko;wrapped; // Call first time to identify dependencies // -> 4 // Some inside dependency updates, notify subscribers; // -> time to update // Don't call expensive operation unless explicitly called // -> 5
About
- Author: Tim Hall
- License: MIT
- Dependencies: knockout