Trivial refactoring of tabs.{getTab,getLocalStore}.

This commit is contained in:
Doug Kearns
2009-01-01 22:01:51 +11:00
parent 21cf316f99
commit 5f846990bc
+4 -4
View File
@@ -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()