ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.144.82.89 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/nicnwebsiteUpgrade/node_modules/vue/src/core/vdom/helpers/ |
Upload File : |
/* @flow */ import VNode from '../vnode' import { createFnInvoker } from './update-listeners' import { remove, isDef, isUndef, isTrue } from 'shared/util' export function mergeVNodeHook (def: Object, hookKey: string, hook: Function) { if (def instanceof VNode) { def = def.data.hook || (def.data.hook = {}) } let invoker const oldHook = def[hookKey] function wrappedHook () { hook.apply(this, arguments) // important: remove merged hook to ensure it's called only once // and prevent memory leak remove(invoker.fns, wrappedHook) } if (isUndef(oldHook)) { // no existing hook invoker = createFnInvoker([wrappedHook]) } else { /* istanbul ignore if */ if (isDef(oldHook.fns) && isTrue(oldHook.merged)) { // already a merged invoker invoker = oldHook invoker.fns.push(wrappedHook) } else { // existing plain hook invoker = createFnInvoker([oldHook, wrappedHook]) } } invoker.merged = true def[hookKey] = invoker }