var Class = require("node-classjs");
var Parent = Class().extend({
foo: 2
});
var bob = new Parent();
var Child = bob.extend({
bar: 3
});
var alice = new Child();
console.log("bob.foo", bob.foo); // 2, as expected
console.log("alice.foo", alice.foo); // 2, as expected
console.log("bob.bar", bob.bar); // 3??? Bob shouldn't have a bar property?
console.log("alice.bar", alice.bar); // 3, as expected
I don't think bob.bar should exist. The parent shouldn't get properties of the child...
I don't think
bob.bar
should exist. The parent shouldn't get properties of the child...