My first action is ready

This commit is contained in:
SethCohen
2022-08-23 22:02:23 -04:00
commit 6df1acd6c0
422 changed files with 96578 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
module.exports = removeHook;
function removeHook(state, name, method) {
if (!state.registry[name]) {
return;
}
var index = state.registry[name]
.map(function (registered) {
return registered.orig;
})
.indexOf(method);
if (index === -1) {
return;
}
state.registry[name].splice(index, 1);
}