2016-10-16 14:16:08 +00:00
|
|
|
|
2017-10-18 16:01:21 +00:00
|
|
|
var VnObject = require ('./object');
|
|
|
|
|
2016-10-16 14:16:08 +00:00
|
|
|
module.exports = new Class
|
|
|
|
({
|
2017-10-18 16:01:21 +00:00
|
|
|
Extends: VnObject
|
2017-11-02 08:23:55 +00:00
|
|
|
,Properties:
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The owner document.
|
|
|
|
*/
|
|
|
|
ownerDocument:
|
|
|
|
{
|
|
|
|
type: Object
|
|
|
|
,get: function ()
|
|
|
|
{
|
|
|
|
return this.doc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-10-16 14:16:08 +00:00
|
|
|
|
|
|
|
,doc: null
|
|
|
|
|
|
|
|
,initialize: function (props)
|
|
|
|
{
|
|
|
|
this.doc = document;
|
|
|
|
this.parent (props);
|
|
|
|
}
|
|
|
|
|
|
|
|
,createElement: function (tagName)
|
|
|
|
{
|
2017-11-02 08:23:55 +00:00
|
|
|
var customTag = vnCustomTags[tagName];
|
|
|
|
|
|
|
|
if (customTag !== undefined)
|
|
|
|
return new customTag ({doc: this.doc});
|
|
|
|
else
|
|
|
|
return document.createElement (tagName);
|
2016-10-16 14:16:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
,createTextNode: function (text)
|
|
|
|
{
|
|
|
|
return document.createTextNode (text);
|
|
|
|
}
|
|
|
|
|
|
|
|
,render: function () {}
|
|
|
|
});
|