Releases: canjs/can-simple-observable
Releases · canjs/can-simple-observable
v2.0.4
activate without having to temporarily bind
Updated docs and added cycle detection
Adding to can-namespace
Initial Release
var obs = observable('one');
canReflect.getValue(obs); // -> "one"
canReflect.setValue(obs, 'two');
canReflect.getValue(obs); // -> "two"
function handler(newValue) {
// -> "three"
};
canReflect.onValue(obs, handler);
canReflect.setValue(obs, 'three');
canReflect.offValue(obs, handler);