MCPcopy
hub / github.com/fanmingming/live / createPatchFunction

Function createPatchFunction

m3u8/vue.js:5838–6554  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

5836 }
5837
5838 function createPatchFunction (backend) {
5839 var i, j;
5840 var cbs = {};
5841
5842 var modules = backend.modules;
5843 var nodeOps = backend.nodeOps;
5844
5845 for (i = 0; i < hooks.length; ++i) {
5846 cbs[hooks[i]] = [];
5847 for (j = 0; j < modules.length; ++j) {
5848 if (isDef(modules[j][hooks[i]])) {
5849 cbs[hooks[i]].push(modules[j][hooks[i]]);
5850 }
5851 }
5852 }
5853
5854 function emptyNodeAt (elm) {
5855 return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
5856 }
5857
5858 function createRmCb (childElm, listeners) {
5859 function remove$$1 () {
5860 if (--remove$$1.listeners === 0) {
5861 removeNode(childElm);
5862 }
5863 }
5864 remove$$1.listeners = listeners;
5865 return remove$$1
5866 }
5867
5868 function removeNode (el) {
5869 var parent = nodeOps.parentNode(el);
5870 // element may have already been removed due to v-html / v-text
5871 if (isDef(parent)) {
5872 nodeOps.removeChild(parent, el);
5873 }
5874 }
5875
5876 function isUnknownElement$$1 (vnode, inVPre) {
5877 return (
5878 !inVPre &&
5879 !vnode.ns &&
5880 !(
5881 config.ignoredElements.length &&
5882 config.ignoredElements.some(function (ignore) {
5883 return isRegExp(ignore)
5884 ? ignore.test(vnode.tag)
5885 : ignore === vnode.tag
5886 })
5887 ) &&
5888 config.isUnknownElement(vnode.tag)
5889 )
5890 }
5891
5892 var creatingElmInVPre = 0;
5893
5894 function createElm (
5895 vnode,

Callers 1

vue.jsFile · 0.85

Calls 15

isDefFunction · 0.85
makeMapFunction · 0.85
isUndefFunction · 0.85
invokeDestroyHookFunction · 0.85
createElmFunction · 0.85
sameVnodeFunction · 0.85
patchVnodeFunction · 0.85
isTrueFunction · 0.85
hydrateFunction · 0.85
invokeInsertHookFunction · 0.85
warnFunction · 0.85
emptyNodeAtFunction · 0.85

Tested by

no test coverage detected