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

Side by Side Diff: lib/requestNotifier.js

Issue 6341149593698304: Issue 301 - Change for each to for .. of .. in lib/ (Closed)
Patch Set: Created April 10, 2014, 5:02 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/objectTabs.js ('k') | lib/subscriptionClasses.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 else if (filter instanceof ElemHideFilter) 306 else if (filter instanceof ElemHideFilter)
307 stats.hidden++; 307 stats.hidden++;
308 308
309 if (filter.text in stats.filters) 309 if (filter.text in stats.filters)
310 stats.filters[filter.text]++; 310 stats.filters[filter.text]++;
311 else 311 else
312 stats.filters[filter.text] = 1; 312 stats.filters[filter.text] = 1;
313 } 313 }
314 314
315 // Notify listeners 315 // Notify listeners
316 for each (let notifier in activeNotifiers) 316 for (let notifier of activeNotifiers)
317 if (!notifier.window || notifier.window == topWnd) 317 if (!notifier.window || notifier.window == topWnd)
318 notifier.notifyListener(topWnd, node, this); 318 notifier.notifyListener(topWnd, node, this);
319 } 319 }
320 RequestEntry.prototype = 320 RequestEntry.prototype =
321 { 321 {
322 /** 322 /**
323 * Content type of the request (one of the nsIContentPolicy constants) 323 * Content type of the request (one of the nsIContentPolicy constants)
324 * @type Integer 324 * @type Integer
325 */ 325 */
326 type: null, 326 type: null,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 if (typeof existingData == "undefined") 364 if (typeof existingData == "undefined")
365 { 365 {
366 existingData = {}; 366 existingData = {};
367 setEntry(nodeData, node, existingData); 367 setEntry(nodeData, node, existingData);
368 } 368 }
369 369
370 // Add this request to the node data 370 // Add this request to the node data
371 existingData[this.type + " " + this.location] = this; 371 existingData[this.type + " " + this.location] = this;
372 } 372 }
373 }; 373 };
OLDNEW
« no previous file with comments | « lib/objectTabs.js ('k') | lib/subscriptionClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld