From 36ccd7a32112fa4168fe9dcd6d0110a6e13e3218 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Fri, 6 Nov 2015 15:47:39 +0900 Subject: [PATCH] Fix misspelling of "phisical" - it should be "physical" #889 --- defaults/preferences/treestyletab.js | 2 +- modules/browser.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/defaults/preferences/treestyletab.js b/defaults/preferences/treestyletab.js index 457f80d8..788b7e0e 100644 --- a/defaults/preferences/treestyletab.js +++ b/defaults/preferences/treestyletab.js @@ -250,7 +250,7 @@ pref("extensions.treestyletab.maxTreeLevel.vertical", 999); * So, even if you enlarge "maxTreeLevel" prefs, you won't see tabs with new * indentation. */ -pref("extensions.treestyletab.maxTreeLevel.phisical", false); +pref("extensions.treestyletab.maxTreeLevel.physical", false); /** * Indentation size for one tree level, in pixels. diff --git a/modules/browser.js b/modules/browser.js index 47e9cc41..7cdf3535 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -133,7 +133,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { startProp : 'top', endProp : 'bottom', - maxTreeLevelPhisical : false, + maxTreeLevelPhysical : false, needRestoreTree : false, @@ -1788,7 +1788,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { this.setTabbrowserAttribute(this.kALLOW_STACK, this.canStackTabs ? 'true' : null); this.updateTabsZIndex(this.canStackTabs); - if (this.maxTreeLevelPhisical) + if (this.maxTreeLevelPhysical) this.promoteTooDeepLevelTabs(); this.updateAllTabsIndent(); @@ -2637,8 +2637,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { case 'extensions.treestyletab.tabbar.narrowScrollbar': return this.setTabbrowserAttribute(this.kNARROW_SCROLLBAR, value); - case 'extensions.treestyletab.maxTreeLevel.phisical': - if (this.maxTreeLevelPhisical = value) + case 'extensions.treestyletab.maxTreeLevel.physical': + if (this.maxTreeLevelPhysical = value) this.promoteTooDeepLevelTabs(); return; @@ -5193,7 +5193,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { if (aParent) { newAncestors = [aParent].concat(this.getAncestorTabs(aParent)); - if (this.maxTreeLevelPhisical && this.maxTreeLevel > -1) { + if (this.maxTreeLevelPhysical && this.maxTreeLevel > -1) { let level = parseInt(aParent.getAttribute(this.kNEST) || 0) + 1; newAncestors.some(function(aAncestor) { if (level <= this.maxTreeLevel) @@ -5832,7 +5832,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { promoteTooDeepLevelTabs : function TSTBrowser_promoteTooDeepLevelTabs(aParent) { - if (this.maxTreeLevel < 0 || !this.maxTreeLevelPhisical) + if (this.maxTreeLevel < 0 || !this.maxTreeLevelPhysical) return; var tabs = aParent ? this.getDescendantTabs(aParent) : this.getAllTabs(this.mTabBrowser) ;