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

Side by Side Diff: lib/elemHide.js

Issue 6305806509146112: Issue 427 - Remove non-standard function and getter syntax (Closed)
Patch Set: Wow sorry for those wrong braces, I am so used to a different style that I didn't even realize what… Created May 18, 2014, 10:51 a.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/customizableUI.js ('k') | lib/filterClasses.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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 Cu.reportError(e); 372 Cu.reportError(e);
373 } 373 }
374 ElemHide.applied = false; 374 ElemHide.applied = false;
375 } 375 }
376 }, 376 },
377 377
378 /** 378 /**
379 * Retrieves the currently applied stylesheet URL 379 * Retrieves the currently applied stylesheet URL
380 * @type String 380 * @type String
381 */ 381 */
382 get styleURL() ElemHide.applied ? styleURL.spec : null, 382 get styleURL()
383 {
384 return ElemHide.applied ? styleURL.spec : null;
385 },
383 386
384 /** 387 /**
385 * Retrieves an element hiding filter by the corresponding protocol key 388 * Retrieves an element hiding filter by the corresponding protocol key
386 */ 389 */
387 getFilterByKey: function(/**String*/ key) /**Filter*/ 390 getFilterByKey: function(/**String*/ key) /**Filter*/
388 { 391 {
389 return (key in filterByKey ? filterByKey[key] : null); 392 return (key in filterByKey ? filterByKey[key] : null);
390 }, 393 },
391 394
392 /** 395 /**
(...skipping 14 matching lines...) Expand all
407 410
408 if (specificOnly && (!domains || domains[""])) 411 if (specificOnly && (!domains || domains[""]))
409 continue; 412 continue;
410 413
411 if (filter.isActiveOnDomain(domain) && !this.getException(filter, domain)) 414 if (filter.isActiveOnDomain(domain) && !this.getException(filter, domain))
412 result.push(filter.selector); 415 result.push(filter.selector);
413 } 416 }
414 return result; 417 return result;
415 } 418 }
416 }; 419 };
OLDNEW
« no previous file with comments | « lib/customizableUI.js ('k') | lib/filterClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld