npm.io
0.3.0 • Published 11 years ago

subindable

Licence
BSD-2-Clause
Version
0.3.0
Deps
4
Vulns
2
Weekly
0

Subindable.js allows you to inherit properties from a parent bindable.Object. It's used in Mojo.js. Alt ci

var subindable = require("subindable");

var p = new subindable.Object({ name: "craig" }),
c     = new subindable.Object({}, p); // second param = parent


console.log(c.get("name")); // craig
p.set("name", "jake"));
console.log(c.get("name")); // jake