From 8185bafaae584c1b7f5faeee873c0e231e621a10 Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Sun, 11 Oct 2015 12:40:17 +0900 Subject: [PATCH] Define global symbol which to be exported, by "var" instead of "const". This should avoid the issue caused by new behavior of ES6 "const". See also https://bugzilla.mozilla.org/show_bug.cgi?id=1202902 --- modules/autoHide.js | 2 +- modules/base.js | 2 +- modules/browser.js | 2 +- modules/browserUIShowHideObserver.js | 2 +- modules/constants.js | 2 +- modules/contentBridge.js | 2 +- modules/fullTooltip.js | 2 +- modules/fullscreenObserver.js | 2 +- modules/groupTab.js | 2 +- modules/lib/inherit.jsm | 2 +- modules/pseudoTreeBuilder.js | 2 +- modules/tabAttributesObserver.js | 2 +- modules/tabbarDNDObserver.js | 2 +- modules/tabpanelDNDObserver.js | 2 +- modules/themeManager.js | 2 +- modules/window.js | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/autoHide.js b/modules/autoHide.js index cc746039..40b9e8f4 100644 --- a/modules/autoHide.js +++ b/modules/autoHide.js @@ -34,7 +34,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['AutoHideBrowser', 'AutoHideWindow']; +var EXPORTED_SYMBOLS = ['AutoHideBrowser', 'AutoHideWindow']; const DEBUG = false; diff --git a/modules/base.js b/modules/base.js index 3b0e3851..5cc921cc 100644 --- a/modules/base.js +++ b/modules/base.js @@ -34,7 +34,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['TreeStyleTabBase']; +var EXPORTED_SYMBOLS = ['TreeStyleTabBase']; const Cc = Components.classes; const Ci = Components.interfaces; diff --git a/modules/browser.js b/modules/browser.js index 87100517..580af5f8 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -36,7 +36,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['TreeStyleTabBrowser']; +var EXPORTED_SYMBOLS = ['TreeStyleTabBrowser']; const DEBUG = false; diff --git a/modules/browserUIShowHideObserver.js b/modules/browserUIShowHideObserver.js index 9fc4cb08..8ecbe747 100644 --- a/modules/browserUIShowHideObserver.js +++ b/modules/browserUIShowHideObserver.js @@ -34,7 +34,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['BrowserUIShowHideObserver']; +var EXPORTED_SYMBOLS = ['BrowserUIShowHideObserver']; var DEBUG = false; diff --git a/modules/constants.js b/modules/constants.js index 063ad90e..3f169b9c 100644 --- a/modules/constants.js +++ b/modules/constants.js @@ -34,7 +34,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['TreeStyleTabConstants']; +var EXPORTED_SYMBOLS = ['TreeStyleTabConstants']; var TreeStyleTabConstants = Object.freeze({ /* attributes */ diff --git a/modules/contentBridge.js b/modules/contentBridge.js index 8a90fd77..a7c0f699 100644 --- a/modules/contentBridge.js +++ b/modules/contentBridge.js @@ -33,7 +33,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['ContentBridge']; +var EXPORTED_SYMBOLS = ['ContentBridge']; const DEBUG = false; diff --git a/modules/fullTooltip.js b/modules/fullTooltip.js index 7962f2f7..9457d87b 100644 --- a/modules/fullTooltip.js +++ b/modules/fullTooltip.js @@ -34,7 +34,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['FullTooltipManager']; +var EXPORTED_SYMBOLS = ['FullTooltipManager']; const Cc = Components.classes; const Ci = Components.interfaces; diff --git a/modules/fullscreenObserver.js b/modules/fullscreenObserver.js index 368eb87d..324f2821 100644 --- a/modules/fullscreenObserver.js +++ b/modules/fullscreenObserver.js @@ -33,7 +33,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['FullscreenObserver']; +var EXPORTED_SYMBOLS = ['FullscreenObserver']; Components.utils.import('resource://treestyletab-modules/utils.js'); diff --git a/modules/groupTab.js b/modules/groupTab.js index c53725e3..080f1b4a 100644 --- a/modules/groupTab.js +++ b/modules/groupTab.js @@ -34,7 +34,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['GroupTab']; +var EXPORTED_SYMBOLS = ['GroupTab']; const Cc = Components.classes; const Ci = Components.interfaces; diff --git a/modules/lib/inherit.jsm b/modules/lib/inherit.jsm index 72ce6257..cb7730e9 100644 --- a/modules/lib/inherit.jsm +++ b/modules/lib/inherit.jsm @@ -10,7 +10,7 @@ * @url http://github.com/piroor/fxaddonlib-inherit */ -const EXPORTED_SYMBOLS = ['inherit']; +var EXPORTED_SYMBOLS = ['inherit']; function toPropertyDescriptors(aProperties) { var descriptors = {}; diff --git a/modules/pseudoTreeBuilder.js b/modules/pseudoTreeBuilder.js index de5ecf90..5907d54e 100644 --- a/modules/pseudoTreeBuilder.js +++ b/modules/pseudoTreeBuilder.js @@ -34,7 +34,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['PseudoTreeBuilder']; +var EXPORTED_SYMBOLS = ['PseudoTreeBuilder']; const Cc = Components.classes; const Ci = Components.interfaces; diff --git a/modules/tabAttributesObserver.js b/modules/tabAttributesObserver.js index 7f81598a..8a622314 100644 --- a/modules/tabAttributesObserver.js +++ b/modules/tabAttributesObserver.js @@ -33,7 +33,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['TabAttributesObserver']; +var EXPORTED_SYMBOLS = ['TabAttributesObserver']; Components.utils.import('resource://treestyletab-modules/constants.js'); diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index dfd2598c..c4a53411 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -35,7 +35,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['TabbarDNDObserver']; +var EXPORTED_SYMBOLS = ['TabbarDNDObserver']; const DEBUG = false; diff --git a/modules/tabpanelDNDObserver.js b/modules/tabpanelDNDObserver.js index 69689c53..838df36b 100644 --- a/modules/tabpanelDNDObserver.js +++ b/modules/tabpanelDNDObserver.js @@ -34,7 +34,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['TabpanelDNDObserver']; +var EXPORTED_SYMBOLS = ['TabpanelDNDObserver']; const Cc = Components.classes; const Ci = Components.interfaces; diff --git a/modules/themeManager.js b/modules/themeManager.js index 1cc1105d..26126a67 100644 --- a/modules/themeManager.js +++ b/modules/themeManager.js @@ -34,7 +34,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['TreeStyleTabThemeManager']; +var EXPORTED_SYMBOLS = ['TreeStyleTabThemeManager']; const BASE = 'chrome://treestyletab/skin/'; diff --git a/modules/window.js b/modules/window.js index 424f3460..577296d5 100644 --- a/modules/window.js +++ b/modules/window.js @@ -34,7 +34,7 @@ * * ***** END LICENSE BLOCK ******/ -const EXPORTED_SYMBOLS = ['TreeStyleTabWindow']; +var EXPORTED_SYMBOLS = ['TreeStyleTabWindow']; const Cc = Components.classes; const Ci = Components.interfaces;