Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/hitLogger.js

Issue 29991594: Issue 7243 - Update adblockpluscore dependency to hg:e26e122e0702 (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Update dependency to hg:91cd83c4c272 Created Jan. 30, 2019, 7:19 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld