MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / createAnchor

Function createAnchor

06.Router/basic/js/vue.js:1444–1448  ·  view source on GitHub ↗

* Create an "anchor" for performing dom insertion/removals. * This is used in a number of scenarios: * - fragment instance * - v-html * - v-if * - v-for * - component * * @param {String} content * @param {Boolean} persist - IE trashes empty textNodes on *

(content, persist)

Source from the content-addressed store, hash-verified

1442 */
1443
1444 function createAnchor(content, persist) {
1445 var anchor = config.debug ? document.createComment(content) : document.createTextNode(persist ? ' ' : '');
1446 anchor.__v_anchor = true;
1447 return anchor;
1448 }
1449
1450 /**
1451 * Find a component ref attribute that starts with $.

Callers 3

vue.jsFile · 0.70
FragmentFunction · 0.70
transcludeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected