Fix misspelling of "phisical" - it should be "physical" #889

This commit is contained in:
YUKI Hiroshi 2015-11-06 15:47:39 +09:00
parent 562e2afef1
commit 36ccd7a321
2 changed files with 7 additions and 7 deletions

View File

@ -250,7 +250,7 @@ pref("extensions.treestyletab.maxTreeLevel.vertical", 999);
* So, even if you enlarge "maxTreeLevel" prefs, you won't see tabs with new * So, even if you enlarge "maxTreeLevel" prefs, you won't see tabs with new
* indentation. * indentation.
*/ */
pref("extensions.treestyletab.maxTreeLevel.phisical", false); pref("extensions.treestyletab.maxTreeLevel.physical", false);
/** /**
* Indentation size for one tree level, in pixels. * Indentation size for one tree level, in pixels.

View File

@ -133,7 +133,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
startProp : 'top', startProp : 'top',
endProp : 'bottom', endProp : 'bottom',
maxTreeLevelPhisical : false, maxTreeLevelPhysical : false,
needRestoreTree : false, needRestoreTree : false,
@ -1788,7 +1788,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
this.setTabbrowserAttribute(this.kALLOW_STACK, this.canStackTabs ? 'true' : null); this.setTabbrowserAttribute(this.kALLOW_STACK, this.canStackTabs ? 'true' : null);
this.updateTabsZIndex(this.canStackTabs); this.updateTabsZIndex(this.canStackTabs);
if (this.maxTreeLevelPhisical) if (this.maxTreeLevelPhysical)
this.promoteTooDeepLevelTabs(); this.promoteTooDeepLevelTabs();
this.updateAllTabsIndent(); this.updateAllTabsIndent();
@ -2637,8 +2637,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
case 'extensions.treestyletab.tabbar.narrowScrollbar': case 'extensions.treestyletab.tabbar.narrowScrollbar':
return this.setTabbrowserAttribute(this.kNARROW_SCROLLBAR, value); return this.setTabbrowserAttribute(this.kNARROW_SCROLLBAR, value);
case 'extensions.treestyletab.maxTreeLevel.phisical': case 'extensions.treestyletab.maxTreeLevel.physical':
if (this.maxTreeLevelPhisical = value) if (this.maxTreeLevelPhysical = value)
this.promoteTooDeepLevelTabs(); this.promoteTooDeepLevelTabs();
return; return;
@ -5193,7 +5193,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
if (aParent) { if (aParent) {
newAncestors = [aParent].concat(this.getAncestorTabs(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; let level = parseInt(aParent.getAttribute(this.kNEST) || 0) + 1;
newAncestors.some(function(aAncestor) { newAncestors.some(function(aAncestor) {
if (level <= this.maxTreeLevel) if (level <= this.maxTreeLevel)
@ -5832,7 +5832,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
promoteTooDeepLevelTabs : function TSTBrowser_promoteTooDeepLevelTabs(aParent) promoteTooDeepLevelTabs : function TSTBrowser_promoteTooDeepLevelTabs(aParent)
{ {
if (this.maxTreeLevel < 0 || !this.maxTreeLevelPhisical) if (this.maxTreeLevel < 0 || !this.maxTreeLevelPhysical)
return; return;
var tabs = aParent ? this.getDescendantTabs(aParent) : this.getAllTabs(this.mTabBrowser) ; var tabs = aParent ? this.getDescendantTabs(aParent) : this.getAllTabs(this.mTabBrowser) ;