blob: 2365e5cabd58c8da8b5644d4862fdd45080206e6 [file] [log] [blame]
function HierarchyElement(){}
HierarchyElement.prototype.initHierarchy = function() {
this.hierarchy = [];
this._isParent = false;
this.checkParenting();
}
HierarchyElement.prototype.resetHierarchy = function() {
this.hierarchy.length = 0;
};
HierarchyElement.prototype.getHierarchy = function() {
return this.hierarchy;
};
HierarchyElement.prototype.setHierarchy = function(hierarchy){
this.hierarchy = hierarchy;
};
HierarchyElement.prototype.checkParenting = function(){
if (this.data.parent !== undefined){
this.comp.buildElementParenting(this, this.data.parent, []);
}
};
HierarchyElement.prototype.prepareHierarchy = function(){
};