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

Unified Diff: lib/contentPolicy.js

Issue 5166222576451584: Issue 2264 - Remove deprecated logic from Utils.runAsync() on Firefox (Closed)
Patch Set: Created April 2, 2015, 10:16 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 | « chrome/content/ui/filters-subscriptionview.js ('k') | lib/elemHideHitRegistration.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/contentPolicy.js
===================================================================
--- a/lib/contentPolicy.js
+++ b/lib/contentPolicy.js
@@ -318,7 +318,7 @@
return;
for (let node of nodes)
- Utils.runAsync(refilterNode, this, node, entry);
+ Utils.runAsync(() => refilterNode(node, entry));
}
};
Policy.init();
@@ -460,7 +460,7 @@
if (!Policy.processNode(subject.opener, subject.opener.document, Policy.type.POPUP, uri, false))
{
subject.stop();
- Utils.runAsync(subject.close, subject);
+ Utils.runAsync(() => subject.close());
}
else if (uri.spec == "about:blank")
{
« no previous file with comments | « chrome/content/ui/filters-subscriptionview.js ('k') | lib/elemHideHitRegistration.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld