From e691e6759ecefbda8ea650c881dc0b767b1e3673 Mon Sep 17 00:00:00 2001 From: saneyuki_s Date: Wed, 13 Feb 2013 00:49:01 +0900 Subject: [PATCH] Fix js strict-mode error: avoid prohibits function statements not at the top level of a script or function. --- content/treestyletab/windowHelperHacks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/treestyletab/windowHelperHacks.js b/content/treestyletab/windowHelperHacks.js index 443dd97a..80cff0c8 100644 --- a/content/treestyletab/windowHelperHacks.js +++ b/content/treestyletab/windowHelperHacks.js @@ -328,7 +328,7 @@ TreeStyleTabWindowHelper.overrideExtensionsBeforeBrowserInit = function TSTWH_ov if (TreeStyleTabUtils.getTreePref('compatibility.TMP') && 'isTabVisible' in gBrowser.mTabContainer && 'ensureTabIsVisible' in gBrowser.mTabContainer) { - function replaceHorizontalProps(aString) + let replaceHorizontalProps = function replaceHorizontalProps(aString) { return aString.replace( /boxObject\.x/g,