Lines Matching refs:hooks
17 const hooks = { variable
25 const hookSet = ArrayPrototypeSlice(hooks.init);
66 const beforeAll = makeRunHook(hooks.before);
67 const afterAll = makeRunHook(hooks.after);
68 const settledAll = makeRunHook(hooks.settled);
75 const init = maybeFastPath(hooks.init, initAll);
76 const before = maybeFastPath(hooks.before, beforeAll);
77 const after = maybeFastPath(hooks.after, afterAll);
78 const settled = maybeFastPath(hooks.settled, settledAll);
91 const list = hooks[name];
106 const hooks = [];
108 if (init) ArrayPrototypePush(hooks, onInit(init));
109 if (before) ArrayPrototypePush(hooks, onBefore(before));
110 if (after) ArrayPrototypePush(hooks, onAfter(after));
111 if (settled) ArrayPrototypePush(hooks, onSettled(settled));
114 for (const stop of hooks) {