maccman/spine — Issue #120: Model inheritance (again)
Author: jcarranca
Created: 2011-10-16 17:29:50+00:00
State: open

Hi,
I know that this has been posted before as issue #46, but still doesn't work for me.
When I try the following I don't get the right results:

// CCC "Model"
var CCC = Spine.Model.sub();
CCC.configure('CCC', ['name']);
console.log(CCC.attributes);
// Stage Model
var Stage = CCC.sub();
console.log(Stage.attributes);
Stage.configure('Stage', ['mts', 'type']);
console.log(Stage.attributes);

The console "reduced output" is:
name
name
mts, type

The first and second lines are OK, but the third line should include name also !
To make it work I have to include "name" also on the configure statement for Stage.
Please advise what I am doing wrong (although I think this is still a bug).
I have revised your test/specs/model.js and I think they work because you don't add any new property to the new model.

Joan