2015-01-23 13:09:30 +00:00
|
|
|
|
|
|
|
Class.Mutators.Tag = function (tagName)
|
|
|
|
{
|
|
|
|
Vn.customTags[tagName] = this;
|
|
|
|
|
|
|
|
if (this.parent)
|
|
|
|
{
|
|
|
|
this.implement ({Parent: this.parent.Parent});
|
|
|
|
this.implement ({Child: this.parent.Child});
|
|
|
|
this.implement ({Properties: {}});
|
|
|
|
}
|
|
|
|
|
|
|
|
this.extend ({Tag: tagName});
|
|
|
|
};
|
|
|
|
|
|
|
|
Class.Mutators.Properties = function (props)
|
|
|
|
{
|
|
|
|
var parentProps;
|
|
|
|
|
|
|
|
for (var propName in props)
|
|
|
|
{
|
|
|
|
var prop = props[propName];
|
|
|
|
|
|
|
|
if (!prop.get && !prop.set && prop.writable === undefined)
|
|
|
|
prop.writable = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.parent && (parentProps = this.parent.Properties))
|
|
|
|
for (var propName in parentProps)
|
|
|
|
props[propName] = parentProps[propName];
|
|
|
|
|
|
|
|
this.extend ({Properties: props});
|
|
|
|
Object.defineProperties (this.prototype, props);
|
|
|
|
};
|
|
|
|
|
|
|
|
Class.Mutators.Parent = function (propName)
|
|
|
|
{
|
|
|
|
this.extend ({Parent: propName});
|
|
|
|
};
|
|
|
|
|
|
|
|
Class.Mutators.Child = function (propName)
|
|
|
|
{
|
|
|
|
this.extend ({Child: propName});
|
|
|
|
};
|
|
|
|
|
2015-03-06 23:33:54 +00:00
|
|
|
Class.Mutators.Xml = function (path)
|
|
|
|
{
|
|
|
|
if (path)
|
|
|
|
{
|
2015-09-25 00:53:59 +00:00
|
|
|
//Vn.loadXml (path);
|
2015-03-06 23:33:54 +00:00
|
|
|
this.extend ({Xml: path});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|