UNPKG

marko

Version:

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

26 lines (22 loc) 686 B
"use strict";var inherit = require("raptor-util/inherit"); var domData = require("../components/dom-data"); var keysByDOMNode = domData._m_; var vElementByDOMNode = domData._J_; var createFragmentNode = require("./morphdom/fragment")._j_; var VNode = require("./VNode"); function VFragment(key, ownerComponent, preserve) { this.bU_(null /* childCount */, ownerComponent); this.bV_ = key; this.ac_ = preserve; } VFragment.prototype = { bW_: 12, bm_: function () { var fragment = createFragmentNode(); keysByDOMNode.set(fragment, this.bV_); vElementByDOMNode.set(fragment, this); return fragment; } }; inherit(VFragment, VNode); module.exports = VFragment;