Related... v8 just landed support for Object.observe()  

-Rick


On Monday, October 29, 2012 at 8:11 PM, Azer Koçulu wrote:

> Hi All,
> I've created a new JS library for defining properties that can be subscribed 
> for updates and can interact with eachother.
> Check it here;
> https://github.com/azer/ak47
> Readme contains many examples. Here is another one:
> var user = ak47({ name: 'joe', 'birthdate': 21 });
> > user.name (http://user.name)()
> "joe"
> > user.name.subscribe(console.log);
> > user.name (http://user.name)("mike")
> "mike"
> "mike" "joe"  
> Defining a new property that observes another(s):  
> > var greeting = ak47(joe.name (http://joe.name), function(name){
> return 'Hello ' + name;
> });
> > greeting()
> "Hello mike"
> > joe.name (http://joe.name)("joe")
> > greeting()
> "Hello joe"  
> What do you think?  
> Azer
>  
> --  
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to