mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 19:55:46 +01:00
Trivial refactoring of tabs.{getTab,getLocalStore}.
This commit is contained in:
@@ -677,9 +677,9 @@ function Tabs() //{{{
|
|||||||
return store.options;
|
return store.options;
|
||||||
},
|
},
|
||||||
|
|
||||||
getLocalStore: function (tab)
|
getLocalStore: function (tabIndex)
|
||||||
{
|
{
|
||||||
let tab = this.getTab(tab);
|
let tab = this.getTab(tabIndex);
|
||||||
if (!tab.liberatorStore)
|
if (!tab.liberatorStore)
|
||||||
tab.liberatorStore = {};
|
tab.liberatorStore = {};
|
||||||
return tab.liberatorStore;
|
return tab.liberatorStore;
|
||||||
@@ -737,8 +737,8 @@ function Tabs() //{{{
|
|||||||
{
|
{
|
||||||
if (index != undefined)
|
if (index != undefined)
|
||||||
return getBrowser().mTabs[index];
|
return getBrowser().mTabs[index];
|
||||||
|
else
|
||||||
return getBrowser().mCurrentTab;
|
return getBrowser().mCurrentTab;
|
||||||
},
|
},
|
||||||
|
|
||||||
get closedTabs()
|
get closedTabs()
|
||||||
|
|||||||
Reference in New Issue
Block a user