* Deregister the hook instance.
()
| 91 | * Deregister the hook instance. |
| 92 | */ |
| 93 | deregister() { |
| 94 | const id = this[hookId]; |
| 95 | let index = ArrayPrototypeFindIndex(resolveHooks, (hook) => hook[hookId] === id); |
| 96 | if (index !== -1) { |
| 97 | ArrayPrototypeSplice(resolveHooks, index, 1); |
| 98 | } |
| 99 | index = ArrayPrototypeFindIndex(loadHooks, (hook) => hook[hookId] === id); |
| 100 | if (index !== -1) { |
| 101 | ArrayPrototypeSplice(loadHooks, index, 1); |
| 102 | } |
| 103 | } |
| 104 | }; |
| 105 | |
| 106 | /** |
no outgoing calls
no test coverage detected