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

Function callHook

static/vuejs/vue.runtime.esm.js:2264–2278  ·  view source on GitHub ↗
(vm, hook)

Source from the content-addressed store, hash-verified

2262}
2263
2264function callHook (vm, hook) {
2265 var handlers = vm.$options[hook];
2266 if (handlers) {
2267 for (var i = 0, j = handlers.length; i < j; i++) {
2268 try {
2269 handlers[i].call(vm);
2270 } catch (e) {
2271 handleError(e, vm, (hook + " hook"));
2272 }
2273 }
2274 }
2275 if (vm._hasHookEvent) {
2276 vm.$emit('hook:' + hook);
2277 }
2278}
2279
2280/* */
2281

Callers 8

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

Calls 1

handleErrorFunction · 0.70

Tested by

no test coverage detected