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

Function callHook

static/vuejs/vue.js:2274–2288  ·  view source on GitHub ↗
(vm, hook)

Source from the content-addressed store, hash-verified

2272}
2273
2274function callHook (vm, hook) {
2275 var handlers = vm.$options[hook];
2276 if (handlers) {
2277 for (var i = 0, j = handlers.length; i < j; i++) {
2278 try {
2279 handlers[i].call(vm);
2280 } catch (e) {
2281 handleError(e, vm, (hook + " hook"));
2282 }
2283 }
2284 }
2285 if (vm._hasHookEvent) {
2286 vm.$emit('hook:' + hook);
2287 }
2288}
2289
2290/* */
2291

Callers 8

lifecycleMixinFunction · 0.70
mountComponentFunction · 0.70
activateChildComponentFunction · 0.70
deactivateChildComponentFunction · 0.70
flushSchedulerQueueFunction · 0.70
vue.jsFile · 0.70
initMixinFunction · 0.70
pruneCacheEntryFunction · 0.70

Calls 1

handleErrorFunction · 0.70

Tested by

no test coverage detected