duplicateTabs, moveTabs also new public methods.

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-06-17 01:48:32 +09:00
parent bc7b56a533
commit 2399608213

View File

@ -4715,11 +4715,19 @@ TreeStyleTabBrowser.prototype = {
* * duplicate (boolean) * * duplicate (boolean)
* * insertBefore (nsIDOMElement) * * insertBefore (nsIDOMElement)
*/ */
importTabs : function TSTBrowser_importTabs(aTabs, aOptions) /* PUBLIC API */ importTabs : function TSTBrowser_importTabs(aTabs, aInsertBefore) /* PUBLIC API */
{ {
return this.moveTabs(aTabs, aOptions); return this.moveTabsInternal(aTabs, { insertBefore : aInsertBefore });
}, },
moveTabs : function TSTBrowser_importTabs(aTabs, aOptions) /* PUBLIC API */ duplicateTabs : function TSTBrowser_duplicateTabs(aTabs, aInsertBefore) /* PUBLIC API */
{
return this.moveTabsInternal(aTabs, { insertBefore : aInsertBefore, duplicate : true });
},
moveTabs : function TSTBrowser_importTabs(aTabs, aInsertBefore) /* PUBLIC API */
{
return this.moveTabsInternal(aTabs, { insertBefore : aInsertBefore });
},
moveTabsInternal : function TSTBrowser_moveTabsInternal(aTabs, aOptions)
{ {
aOptions = aOptions || {}; aOptions = aOptions || {};