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

Function createPatchFunction

static/vuejs/vue.esm.js:4556–5125  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

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

Callers 1

vue.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