gerich-home / it-depends

Lightweight dependency tracking library for JavaScript
http://it-depends-js.github.io/
Other
1 stars 2 forks source link

Explicit write method for observales and computeds #8

Closed gerich-home closed 8 years ago

gerich-home commented 8 years ago

Instead of

var a = itDepends.value(10);
a(15);

I want to write

var a = itDepends.value(10);
a.write(15);

See #7 for why. There should be an ability to get "writer" to allow old syntax

var aWriter = a.write();
aWriter(15);