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

Function callHook

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

Source from the content-addressed store, hash-verified

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

Callers 8

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

Calls 1

handleErrorFunction · 0.70

Tested by

no test coverage detected