From 6dc94591f9cc4a7f32b8c3463a41824bc58146f6 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Fri, 21 Jan 2011 23:21:39 +0900 Subject: [PATCH] initTabbar() should get both type of arguments: string and flag. --- content/treestyletab/treestyletabbrowser.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 4513e8d9..caab660d 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -856,6 +856,11 @@ TreeStyleTabBrowser.prototype = { initTabbar : function TSTBrowser_initTabbar(aNewPosition, aOldPosition) { + if (aNewPosition && typeof aNewPosition == 'string') + aNewPosition = this.getPositionFlag(aNewPosition); + if (aOldPosition && typeof aOldPosition == 'string') + aOldPosition = this.getPositionFlag(aOldPosition); + this.stopRendering(); var b = this.mTabBrowser; @@ -1691,7 +1696,7 @@ TreeStyleTabBrowser.prototype = { var oldPosition = this.currentTabbarPosition; if (oldPosition != value) { this.fireTabbarPositionEvent(true, oldPosition, value); - this.initTabbar(this.getPositionFlag(value), this.getPositionFlag(oldPosition)); + this.initTabbar(value, oldPosition); tabs.forEach(function(aTab) { this.initTabAttributes(aTab); }, this);