Comparing version 1.0.2 to 1.0.3
11
index.js
@@ -25,2 +25,6 @@ "use strict"; | ||
if (!hooks[hook]) { | ||
hooks[hook] = []; | ||
} | ||
// remove first argument | ||
@@ -37,1 +41,8 @@ args.shift(); | ||
module.exports.___clearHooks = function(hookName) { | ||
if (typeof hookName !== "undefined") { | ||
hooks[hookName] = []; | ||
return true; | ||
} | ||
hooks = {}; | ||
}; |
{ | ||
"name": "pudge", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "simple node.js hook utility", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
4937
83