Lines Matching refs:list
44 function makeRunHook(list) {
46 const hookSet = ArrayPrototypeSlice(list);
70 function maybeFastPath(list, runAll) {
71 return list.length > 1 ? runAll : list[0];
82 function stop(list, hook) {
83 const index = ArrayPrototypeIndexOf(list, hook);
85 ArrayPrototypeSplice(list, index, 1);
91 const list = hooks[name];
94 ArrayPrototypePush(list, hook);
96 return FunctionPrototypeBind(stop, null, list, hook);