var Watch = require("twixt-watch"),
obj = {};
Watch(obj).addEventListener("watch", function(evt) {
var was, is;
for (var prop in evt.changes) {
was = evt.changes[prop];
is = this[prop];
console.log(prop, "changed from", was, "to", is);
}
});
-
Notifications
You must be signed in to change notification settings - Fork 0
CommonJS browser module for object change watches
License
richRemer/twixt-watch
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
CommonJS browser module for object change watches
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published