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

Unified Diff: lib/content/elemHideEmulation.js

Issue 29738586: Noissue - Access document via this (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created March 31, 2018, 2:10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/content/elemHideEmulation.js
===================================================================
--- a/lib/content/elemHideEmulation.js
+++ b/lib/content/elemHideEmulation.js
@@ -755,23 +755,23 @@
},
MIN_INVOCATION_INTERVAL - (performance.now() - this._lastInvocation));
}
else if (this.document.readyState == "loading")
{
this._scheduledProcessing = {stylesheets, mutations};
let handler = () =>
{
- document.removeEventListener("DOMContentLoaded", handler);
+ this.document.removeEventListener("DOMContentLoaded", handler);
let params = Object.assign({}, this._scheduledProcessing);
this._filteringInProgress = true;
this._scheduledProcessing = null;
this._addSelectors(params.stylesheets, params.mutations, completion);
};
- document.addEventListener("DOMContentLoaded", handler);
+ this.document.addEventListener("DOMContentLoaded", handler);
}
else
{
this._filteringInProgress = true;
this._addSelectors(stylesheets, mutations, completion);
}
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld