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

Function callHook

static/vuejs/vue.runtime.common.js:2266–2280  ·  view source on GitHub ↗
(vm, hook)

Source from the content-addressed store, hash-verified

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

Callers 8

lifecycleMixinFunction · 0.70
mountComponentFunction · 0.70
activateChildComponentFunction · 0.70
deactivateChildComponentFunction · 0.70
flushSchedulerQueueFunction · 0.70
initMixinFunction · 0.70
pruneCacheEntryFunction · 0.70

Calls 1

handleErrorFunction · 0.70

Tested by

no test coverage detected