2022-05-28 19:27:36 +00:00
|
|
|
const VnObject = require('./object');
|
2016-10-16 14:16:08 +00:00
|
|
|
|
2022-05-24 21:11:12 +00:00
|
|
|
module.exports = new Class({
|
2022-05-28 19:27:36 +00:00
|
|
|
Extends: VnObject
|
2016-10-16 14:16:08 +00:00
|
|
|
|
|
|
|
,doc: null
|
|
|
|
|
2022-11-16 01:46:44 +00:00
|
|
|
,initialize(props) {
|
2016-10-16 14:16:08 +00:00
|
|
|
this.doc = document;
|
2022-05-28 19:27:36 +00:00
|
|
|
this.parent(props);
|
2016-10-16 14:16:08 +00:00
|
|
|
}
|
|
|
|
|
2022-11-16 01:46:44 +00:00
|
|
|
,createElement(tagName) {
|
2022-06-06 16:02:17 +00:00
|
|
|
return this.doc.createElement(tagName);
|
2016-10-16 14:16:08 +00:00
|
|
|
}
|
|
|
|
|
2022-11-16 01:46:44 +00:00
|
|
|
,createTextNode(text) {
|
2022-06-06 16:02:17 +00:00
|
|
|
return this.doc.createTextNode(text);
|
2016-10-16 14:16:08 +00:00
|
|
|
}
|
|
|
|
|
2022-11-16 01:46:44 +00:00
|
|
|
,render() {}
|
2016-10-16 14:16:08 +00:00
|
|
|
});
|
|
|
|
|