hedera-web/js/vn/node-builder.js

24 lines
377 B
JavaScript
Raw Normal View History

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-05-24 21:11:12 +00:00
,initialize: function(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-05-24 21:11:12 +00:00
,createElement: function(tagName) {
2022-06-06 16:02:17 +00:00
return this.doc.createElement(tagName);
2016-10-16 14:16:08 +00:00
}
2022-05-24 21:11:12 +00:00
,createTextNode: function(text) {
2022-06-06 16:02:17 +00:00
return this.doc.createTextNode(text);
2016-10-16 14:16:08 +00:00
}
2022-05-24 21:11:12 +00:00
,render: function() {}
2016-10-16 14:16:08 +00:00
});