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: Remove third-party checks from QUnit tests Created Jan. 31, 2019, 12:56 a.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
« no previous file with comments | « lib/filterComposer.js ('k') | lib/popupBlocker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « lib/filterComposer.js ('k') | lib/popupBlocker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld