watchable-object
v3.0.0
Published
[![Build Status](https://travis-ci.org/mojo-js/watchable-object.js.svg)](https://travis-ci.org/mojo-js/watchable-object.js) [![Coverage Status](https://coveralls.io/repos/mojo-js/watchable-object.js/badge.svg)](https://coveralls.io/r/mojo-js/watchable-obj
Downloads
38
Readme
var person = new WatchableObject();
person.watch(function () {
});
person.set("name", "Liam Neeson"); // triggers listener
WatchableObject(properties)
initial properties
get(keypath)
keypath to the value
set(keypath, value)
sets a value on the object
watcher watch(listener)
watch for any changes on the object
watcher.dispose()
disposes a watcher