remove lib and node_modules
This commit is contained in:
1 parent
dc7133054e
commit
1357802b01
563 files changed
-93758
No files matched your search
-17
@@ -1,17 +0,0 @@
|
||||
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)
|
||||
}
|
||||
Reference in new issue
Block a user