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

Function processElement

web/main.js:4776–4814  ·  view source on GitHub ↗
(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized)

Source from the content-addressed store, hash-verified

4774 hostRemove(anchor);
4775 };
4776 const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
4777 if (n2.type === "svg") {
4778 namespace = "svg";
4779 } else if (n2.type === "math") {
4780 namespace = "mathml";
4781 }
4782 if (n1 == null) {
4783 mountElement(
4784 n2,
4785 container,
4786 anchor,
4787 parentComponent,
4788 parentSuspense,
4789 namespace,
4790 slotScopeIds,
4791 optimized
4792 );
4793 } else {
4794 const customElement = n1.el && n1.el._isVueCE ? n1.el : null;
4795 try {
4796 if (customElement) {
4797 customElement._beginPatch();
4798 }
4799 patchElement(
4800 n1,
4801 n2,
4802 parentComponent,
4803 parentSuspense,
4804 namespace,
4805 slotScopeIds,
4806 optimized
4807 );
4808 } finally {
4809 if (customElement) {
4810 customElement._endPatch();
4811 }
4812 }
4813 }
4814 };
4815 const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
4816 let el;
4817 let vnodeHook;

Callers 1

patchFunction · 0.85

Calls 2

mountElementFunction · 0.85
patchElementFunction · 0.85

Tested by

no test coverage detected