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

Side by Side Diff: lib/objectTabs.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/notification.js ('k') | lib/requestNotifier.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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 this.positionTimer = null; 296 this.positionTimer = null;
297 } 297 }
298 298
299 try { 299 try {
300 objtab.parentNode.removeChild(objtab); 300 objtab.parentNode.removeChild(objtab);
301 } catch (e) {} 301 } catch (e) {}
302 objtab.removeEventListener("mouseover", objectTabEventHander, false); 302 objtab.removeEventListener("mouseover", objectTabEventHander, false);
303 objtab.removeEventListener("mouseout", objectTabEventHander, false); 303 objtab.removeEventListener("mouseout", objectTabEventHander, false);
304 objtab.nodeData = null; 304 objtab.nodeData = null;
305 305
306 for each (let wnd in this.windowListeners) 306 for (let wnd of this.windowListeners)
307 wnd.removeEventListener("MozAfterPaint", objectWindowEventHandler, false ); 307 wnd.removeEventListener("MozAfterPaint", objectWindowEventHandler, false );
308 this.windowListeners = null; 308 this.windowListeners = null;
309 } 309 }
310 }, 310 },
311 311
312 /** 312 /**
313 * Updates position of the tab element. 313 * Updates position of the tab element.
314 */ 314 */
315 _positionTab: function() 315 _positionTab: function()
316 { 316 {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 event.stopPropagation(); 483 event.stopPropagation();
484 484
485 objTabs.doBlock(); 485 objTabs.doBlock();
486 } 486 }
487 else if (event.type == "mouseover") 487 else if (event.type == "mouseover")
488 objTabs.showTabFor(objTabs.currentElement); 488 objTabs.showTabFor(objTabs.currentElement);
489 else if (event.type == "mouseout") 489 else if (event.type == "mouseout")
490 objTabs.hideTabFor(objTabs.currentElement); 490 objTabs.hideTabFor(objTabs.currentElement);
491 } 491 }
492 exports.objectMouseEventHander = objectMouseEventHander; 492 exports.objectMouseEventHander = objectMouseEventHander;
OLDNEW
« no previous file with comments | « lib/notification.js ('k') | lib/requestNotifier.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld