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: Compare CSP filters by text Created Jan. 31, 2019, 2:49 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