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

Delta Between Two Patch Sets: lib/filterStorage.js

Issue 6305806509146112: Issue 427 - Remove non-standard function and getter syntax (Closed)
Left Patch Set: Convert shorthand function expressions to arrow functions, this of course isn't possible for getter… Created May 10, 2014, 12:43 p.m.
Right 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « lib/filterClasses.js ('k') | lib/io.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 29 matching lines...) Expand all
40 /** 40 /**
41 * This class reads user's filters from disk, manages them in memory and writes them back. 41 * This class reads user's filters from disk, manages them in memory and writes them back.
42 * @class 42 * @class
43 */ 43 */
44 let FilterStorage = exports.FilterStorage = 44 let FilterStorage = exports.FilterStorage =
45 { 45 {
46 /** 46 /**
47 * Version number of the patterns.ini format used. 47 * Version number of the patterns.ini format used.
48 * @type Integer 48 * @type Integer
49 */ 49 */
50 get formatVersion() { return formatVersion }, 50 get formatVersion()
Wladimir Palant 2014/05/15 07:12:38 Nit: Please add proper line breaks here.
51 {
52 return formatVersion;
53 },
51 54
52 /** 55 /**
53 * File that the filter list has been loaded from and should be saved to 56 * File that the filter list has been loaded from and should be saved to
54 * @type nsIFile 57 * @type nsIFile
55 */ 58 */
56 get sourceFile() 59 get sourceFile()
57 { 60 {
58 let file = null; 61 let file = null;
59 if (Prefs.patternsfile) 62 if (Prefs.patternsfile)
60 { 63 {
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 Subscription.knownSubscriptions = origKnownSubscriptions; 888 Subscription.knownSubscriptions = origKnownSubscriptions;
886 } 889 }
887 890
888 // Allow events to be processed every now and then. 891 // Allow events to be processed every now and then.
889 // Note: IO.readFromFile() will deal with the potential reentrance here. 892 // Note: IO.readFromFile() will deal with the potential reentrance here.
890 this.linesProcessed++; 893 this.linesProcessed++;
891 if (this.linesProcessed % 1000 == 0) 894 if (this.linesProcessed % 1000 == 0)
892 Utils.yield(); 895 Utils.yield();
893 } 896 }
894 }; 897 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld