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

Function createPatchFunction

static/vuejs/vue.common.js:4558–5127  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

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

Callers 1

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