MCPcopy Create free account
hub / github.com/Nynxz/ComfyUI-IdeogramHelper / mountToTarget

Function mountToTarget

web/main.js:2369–2387  ·  view source on GitHub ↗
(vnode = n2)

Source from the content-addressed store, hash-verified

2367 }
2368 };
2369 const mountToTarget = (vnode = n2) => {
2370 const disabled2 = isTeleportDisabled(vnode.props);
2371 const target = vnode.target = resolveTarget(vnode.props, querySelector);
2372 const targetAnchor = prepareAnchor(target, vnode, createText, insert);
2373 if (target) {
2374 if (namespace !== "svg" && isTargetSVG(target)) {
2375 namespace = "svg";
2376 } else if (namespace !== "mathml" && isTargetMathML(target)) {
2377 namespace = "mathml";
2378 }
2379 if (parentComponent && parentComponent.isCE) {
2380 (parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
2381 }
2382 if (!disabled2) {
2383 mount(vnode, target, targetAnchor);
2384 updateCssVars(vnode, false);
2385 }
2386 }
2387 };
2388 const queuePendingMount = (vnode) => {
2389 const mountJob = () => {
2390 if (pendingMounts.get(vnode) !== mountJob) return;

Callers 2

mountJobFunction · 0.85
processFunction · 0.85

Calls 7

isTeleportDisabledFunction · 0.85
resolveTargetFunction · 0.85
prepareAnchorFunction · 0.85
isTargetSVGFunction · 0.85
isTargetMathMLFunction · 0.85
mountFunction · 0.85
updateCssVarsFunction · 0.85

Tested by

no test coverage detected