From 5f846990bc6fad74ebd93f79ae346b56b78291d4 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 31 Dec 2008 15:34:35 +1100 Subject: [PATCH] Trivial refactoring of tabs.{getTab,getLocalStore}. --- common/content/tabs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/content/tabs.js b/common/content/tabs.js index cff3cf06..0fcefb70 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -677,9 +677,9 @@ function Tabs() //{{{ return store.options; }, - getLocalStore: function (tab) + getLocalStore: function (tabIndex) { - let tab = this.getTab(tab); + let tab = this.getTab(tabIndex); if (!tab.liberatorStore) tab.liberatorStore = {}; return tab.liberatorStore; @@ -737,8 +737,8 @@ function Tabs() //{{{ { if (index != undefined) return getBrowser().mTabs[index]; - - return getBrowser().mCurrentTab; + else + return getBrowser().mCurrentTab; }, get closedTabs()