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

Unified Diff: lib/filterNotifier.js

Issue 29807560: Issue 6745 - Prefer strict equality operator (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created June 14, 2018, 4:11 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
« no previous file with comments | « lib/filterListener.js ('k') | lib/filterStorage.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterNotifier.js
===================================================================
--- a/lib/filterNotifier.js
+++ b/lib/filterNotifier.js
@@ -43,17 +43,17 @@
* Adds a listener
*
* @deprecated use FilterNotifier.on(action, callback)
* @param {FilterNotifierCatchAllListener} listener
*/
addListener(listener)
{
let listeners = this._listeners.get(CATCH_ALL);
- if (!listeners || listeners.indexOf(listener) == -1)
+ if (!listeners || listeners.indexOf(listener) === -1)
this.on(CATCH_ALL, listener);
},
/**
* Removes a listener that was previosly added via addListener
*
* @deprecated use FilterNotifier.off(action, callback)
* @param {FilterNotifierCatchAllListener} listener
« no previous file with comments | « lib/filterListener.js ('k') | lib/filterStorage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld