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

Delta Between Two Patch Sets: lib/io.js

Issue 6305806509146112: Issue 427 - Remove non-standard function and getter syntax (Closed)
Left Patch Set: Created May 5, 2014, 12:18 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/filterStorage.js ('k') | lib/requestNotifier.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 20 matching lines...) Expand all
31 31
32 let IO = exports.IO = 32 let IO = exports.IO =
33 { 33 {
34 /** 34 /**
35 * Retrieves the platform-dependent line break string. 35 * Retrieves the platform-dependent line break string.
36 */ 36 */
37 get lineBreak() 37 get lineBreak()
38 { 38 {
39 let lineBreak = (Services.appinfo.OS == "WINNT" ? "\r\n" : "\n"); 39 let lineBreak = (Services.appinfo.OS == "WINNT" ? "\r\n" : "\n");
40 delete IO.lineBreak; 40 delete IO.lineBreak;
41 IO.__defineGetter__("lineBreak", function() { return lineBreak; }); 41 IO.__defineGetter__("lineBreak", () => lineBreak);
42 return IO.lineBreak; 42 return IO.lineBreak;
43 }, 43 },
44 44
45 /** 45 /**
46 * Tries to interpret a file path as an absolute path or a path relative to 46 * Tries to interpret a file path as an absolute path or a path relative to
47 * user's profile. Returns a file or null on failure. 47 * user's profile. Returns a file or null on failure.
48 */ 48 */
49 resolveFilePath: function(/**String*/ path) /**nsIFile*/ 49 resolveFilePath: function(/**String*/ path) /**nsIFile*/
50 { 50 {
51 if (!path) 51 if (!path)
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 else 335 else
336 callback(e); 336 callback(e);
337 }); 337 });
338 } 338 }
339 catch(e) 339 catch(e)
340 { 340 {
341 callback(e); 341 callback(e);
342 } 342 }
343 } 343 }
344 } 344 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld