MCPcopy Index your code
hub / github.com/TruthHun/BookStack / createPatchFunction

Function createPatchFunction

static/vuejs/vue.runtime.esm.js:4552–5121  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

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

Callers 1

vue.runtime.esm.jsFile · 0.70

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