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

Unified Diff: lib/antiadblockInit.js

Issue 6341149593698304: Issue 301 - Change for each to for .. of .. in lib/ (Closed)
Patch Set: Created April 10, 2014, 5:02 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/Public.jsm ('k') | lib/contentPolicy.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/antiadblockInit.js
===================================================================
--- a/lib/antiadblockInit.js
+++ b/lib/antiadblockInit.js
@@ -40,17 +40,17 @@ exports.initAntiAdblockNotification = fu
let subscription = Subscription.fromURL(Prefs.subscriptions_antiadblockurl);
if (subscription.url in FilterStorage.knownSubscriptions)
subscription.disabled = !approved;
}
function addAntiAdblockNotification(subscription)
{
let urlFilters = [];
- for each (let filter in subscription.filters)
+ for (let filter of subscription.filters)
if (filter instanceof ActiveFilter)
for (let domain in filter.domains)
if (domain && urlFilters.indexOf(domain) == -1)
urlFilters.push(domain);
notification.urlFilters = urlFilters;
Notification.addNotification(notification);
Notification.addQuestionListener(notification.id, notificationListener);
}
« no previous file with comments | « lib/Public.jsm ('k') | lib/contentPolicy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld