MCPcopy Create free account
hub / github.com/TruthHun/BookStack / createPatchFunction

Function createPatchFunction

static/vuejs/vue.runtime.common.js:4554–5123  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

4552}
4553
4554function createPatchFunction (backend) {
4555 var i, j;
4556 var cbs = {};
4557
4558 var modules = backend.modules;
4559 var nodeOps = backend.nodeOps;
4560
4561 for (i = 0; i < hooks.length; ++i) {
4562 cbs[hooks[i]] = [];
4563 for (j = 0; j < modules.length; ++j) {
4564 if (isDef(modules[j][hooks[i]])) {
4565 cbs[hooks[i]].push(modules[j][hooks[i]]);
4566 }
4567 }
4568 }
4569
4570 function emptyNodeAt (elm) {
4571 return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
4572 }
4573
4574 function createRmCb (childElm, listeners) {
4575 function remove$$1 () {
4576 if (--remove$$1.listeners === 0) {
4577 removeNode(childElm);
4578 }
4579 }
4580 remove$$1.listeners = listeners;
4581 return remove$$1
4582 }
4583
4584 function removeNode (el) {
4585 var parent = nodeOps.parentNode(el);
4586 // element may have already been removed due to v-html / v-text
4587 if (isDef(parent)) {
4588 nodeOps.removeChild(parent, el);
4589 }
4590 }
4591
4592 var inPre = 0;
4593 function createElm (vnode, insertedVnodeQueue, parentElm, refElm, nested) {
4594 vnode.isRootInsert = !nested; // for transition enter check
4595 if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {
4596 return
4597 }
4598
4599 var data = vnode.data;
4600 var children = vnode.children;
4601 var tag = vnode.tag;
4602 if (isDef(tag)) {
4603 if (process.env.NODE_ENV !== 'production') {
4604 if (data && data.pre) {
4605 inPre++;
4606 }
4607 if (
4608 !inPre &&
4609 !vnode.ns &&
4610 !(config.ignoredElements.length && config.ignoredElements.indexOf(tag) > -1) &&
4611 config.isUnknownElement(tag)

Callers 1

Calls 14

isDefFunction · 0.70
makeMapFunction · 0.70
isUndefFunction · 0.70
invokeDestroyHookFunction · 0.70
createElmFunction · 0.70
sameVnodeFunction · 0.70
patchVnodeFunction · 0.70
isTrueFunction · 0.70
hydrateFunction · 0.70
invokeInsertHookFunction · 0.70
emptyNodeAtFunction · 0.70
isPatchableFunction · 0.70

Tested by

no test coverage detected