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

Function callHook

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

Source from the content-addressed store, hash-verified

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

Callers 8

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

Calls 1

handleErrorFunction · 0.70

Tested by

no test coverage detected