From 23996082139c41b1ac472a67b2ac1d07f543eba3 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Fri, 17 Jun 2011 01:48:32 +0900 Subject: [PATCH] duplicateTabs, moveTabs also new public methods. --- modules/browser.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index c524ab8e..898e7110 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -4715,11 +4715,19 @@ TreeStyleTabBrowser.prototype = { * * duplicate (boolean) * * 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 || {};