Want to see pretty graphs? Log in now!
npm install node-obj-watch
|3||downloads in the last week|
|12||downloads in the last month|
|Version||0.1.2 last updated 2 years ago|
Watches an object for changes and fires an event for notification
ObjWatcher = require('node-obj-watch') appWatch = new ObjWatcher("App") appWatch.watch "Post", "load", -> console.log("Posts loaded and called back")
if you want to easily add this to your module/framework
Tower.Support.on_load = require('node-obj-watch').on_load Tower.Support.on_load "App", "Post", -> console.log("Posts loaded and called back")
This has only been tested with NodeJS 0.8.2
It is advised that you turn harmony-proxies on but it does use node-proxy as a fallback.
The code should be easy to port to browsers but again only ones that have implemented harmony proxies.