UNPKG

marko

Version:

UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.

25 lines (18 loc) 455 B
"use strict";var inherit = require("raptor-util/inherit"); var VNode = require("./VNode"); function VText(value, ownerComponent) { this.bU_(-1 /* no children */, ownerComponent); this.cm_ = value; } VText.prototype = { cl_: true, bW_: 3, bm_: function (host) { return (host.ownerDocument || host).createTextNode(this.cm_); }, bO_: function () { return new VText(this.cm_); } }; inherit(VText, VNode); module.exports = VText;