[PALEMOON] Resolve issues with redeclaration according to ES6

This commit is contained in:
NTD 2018-04-12 07:28:41 -04:00 • committed by Roy Tam
commit f091415fe1
8 changed files with 22 additions and 22 deletions

View file

@ -10,9 +10,9 @@
* have been properly initialized already. * have been properly initialized already.
*/ */
let Cc = Components.classes; var Cc = Components.classes;
let Ci = Components.interfaces; var Ci = Components.interfaces;
let Cu = Components.utils; var Cu = Components.utils;
// Services = object with smart getters for common XPCOM services // Services = object with smart getters for common XPCOM services
Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/Services.jsm");

View file

@ -3,8 +3,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
let Ci = Components.interfaces; var Ci = Components.interfaces;
let Cu = Components.utils; var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource:///modules/RecentWindow.jsm"); Cu.import("resource:///modules/RecentWindow.jsm");

View file

@ -3,9 +3,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
let Cc = Components.classes; var Cc = Components.classes;
let Ci = Components.interfaces; var Ci = Components.interfaces;
let Cu = Components.utils; var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm");

View file

@ -4,8 +4,8 @@
"use strict"; "use strict";
let Cu = Components.utils; var Cu = Components.utils;
let Ci = Components.interfaces; var Ci = Components.interfaces;
Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/Services.jsm");

View file

@ -1,6 +1,6 @@
let Cc = Components.classes; var Cc = Components.classes;
let Ci = Components.interfaces; var Ci = Components.interfaces;
let Cu = Components.utils; var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm");
var padlock_PadLock = var padlock_PadLock =

View file

@ -8,9 +8,9 @@
* ON IT AS AN API. * ON IT AS AN API.
*/ */
let Cu = Components.utils; var Cu = Components.utils;
let Ci = Components.interfaces; var Ci = Components.interfaces;
let Cc = Components.classes; var Cc = Components.classes;
Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/Services.jsm");

View file

@ -4,9 +4,9 @@
"use strict"; "use strict";
let Cc = Components.classes; var Cc = Components.classes;
let Ci = Components.interfaces; var Ci = Components.interfaces;
let Cu = Components.utils; var Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/FileUtils.jsm"); Cu.import("resource://gre/modules/FileUtils.jsm");

View file

@ -2,9 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
let Ci = Components.interfaces; var Ci = Components.interfaces;
let Cc = Components.classes; var Cc = Components.classes;
let Cu = Components.utils; var Cu = Components.utils;
Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/PluralForm.jsm"); Cu.import("resource://gre/modules/PluralForm.jsm");