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

Function createPatchFunction

static/vuejs/vue.runtime.js:4548–5117  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

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

Callers 1

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