diff options
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/send/node_modules/depd/lib/compat/event-listener-count.js')
-rw-r--r-- | vnfmarket/src/main/webapp/vnfmarket/node_modules/send/node_modules/depd/lib/compat/event-listener-count.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/send/node_modules/depd/lib/compat/event-listener-count.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/send/node_modules/depd/lib/compat/event-listener-count.js new file mode 100644 index 00000000..a05fceb7 --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/send/node_modules/depd/lib/compat/event-listener-count.js @@ -0,0 +1,22 @@ +/*! + * depd + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */ + +'use strict' + +/** + * Module exports. + * @public + */ + +module.exports = eventListenerCount + +/** + * Get the count of listeners on an event emitter of a specific type. + */ + +function eventListenerCount(emitter, type) { + return emitter.listeners(type).length +} |