I'm trying to make a parent/child link with the JS framework Stapes.js.
Here is my code:
var Parent = Stapes.subclass({
constructor: function () {
this.name = 'syl';
}
});
var Child = Parent.subclass({
constructor: function (value) {
this.value = value;
console.log(this.name); // undefined
}
});
var child = new Child('a value');
Fiddle here.
How to access to the parent's name property from the child class?
Problem resolved, see details.