Index: lib/hitLogger.js |
=================================================================== |
--- a/lib/hitLogger.js |
+++ b/lib/hitLogger.js |
@@ -57,21 +57,17 @@ |
removeListener: eventEmitter.off.bind(eventEmitter), |
/** |
* Checks whether a tab is being inspected by anything. |
* |
* @param {number} tabId |
* @return {boolean} |
*/ |
- hasListener(tabId) |
- { |
- let listeners = eventEmitter._listeners.get(tabId); |
- return listeners && listeners.length > 0; |
- } |
+ hasListener: eventEmitter.hasListeners.bind(eventEmitter) |
}; |
/** |
* Logs a request associated with a tab or multiple tabs. |
* |
* @param {number[]} tabIds |
* The tabIds associated with the request |
* @param {Object} request |