new APIs: promoteTabs() / demoteTabs()

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5556 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-18 07:54:07 +00:00
parent abc5b59d64
commit bb8e1ddcd6

View File

@ -1185,6 +1185,10 @@ var TreeStyleTabService = {
{
this.promoteTab(this.browser.selectedTab);
},
promoteTabs : function(aTabs)
{
aTabs.slice().reverse().forEach(this.promoteTab, this);
},
demoteTab : function(aTab)
{
@ -1199,6 +1203,10 @@ var TreeStyleTabService = {
{
this.demoteTab(this.browser.selectedTab);
},
demoteTabs : function(aTabs)
{
aTabs.forEach(this.demoteTab, this);
},
/* Session Store API */