scoped-bindable-object

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i scoped-bindable-object

Weekly Downloads

0

Version

0.0.4

License

BSD-2-Clause

Last publish

Collaborators

  • architectd
  • crcn