LEFT | RIGHT |
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 Loading... |
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 Loading... |
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 } |
LEFT | RIGHT |