MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / hookClass

Method hookClass

scripts/libs/js-hook/index.js:403–405  ·  view source on GitHub ↗
(parentObj, hookMethods, fn, type, context, proxyHandler)

Source from the content-addressed store, hash-verified

401 /* A hook specifically for the new operation is essentially an alias for the hook function.
402 You can pass less classHook parameter and have clear semantics */
403 hookClass (parentObj, hookMethods, fn, type, context, proxyHandler) {
404 return this.hook(parentObj, hookMethods, fn, type, true, context, proxyHandler)
405 }
406
407 /**
408 * Cancel the hook of a certain function

Callers

nothing calls this directly

Calls 1

hookMethod · 0.95

Tested by

no test coverage detected