v1.18.x
Julian Lam 11 years ago
parent 197b7f2a6c
commit d7d4290099

@ -202,6 +202,10 @@ var fs = require('fs'),
} else return;
};
Plugins.hasListeners = function(hook, callback) {
return Plugins.loadedHooks[hook].length > 0;
};
Plugins.fireHook = function(hook, args, callback) {
hookList = Plugins.loadedHooks[hook];

Loading…
Cancel
Save