summaryrefslogtreecommitdiff
path: root/common/content/tabs.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2008-12-23 15:07:48 -0500
committerKris Maglione <maglione.k@gmail.com>2008-12-23 15:07:48 -0500
commit89698e3e050feb9876adaf01db6c7b6dee4697e3 (patch)
tree54a5d3e127621991828163610ca9b9f290e3dee2 /common/content/tabs.js
parentaa27e686c8732361d86490117a8ad69fb7ba0ee5 (diff)
downloadpentadactyl-89698e3e050feb9876adaf01db6c7b6dee4697e3.tar.gz
s/service[(".*?")]/services.get(\1)/g; s/service.get(\w+)/'services.create("' + lcfirst($1) + '")'/ge
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r--common/content/tabs.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js
index 3341a0ac..4e33b942 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -102,8 +102,8 @@ function Tabs() //{{{
if (!from)
from = getBrowser().mTabContainer.selectedItem;
- let tabState = service["sessionStore"].getTabState(from);
- service["sessionStore"].setTabState(to, tabState);
+ let tabState = services.get("sessionStore").getTabState(from);
+ services.get("sessionStore").setTabState(to, tabState);
}
// hide tabs initially
@@ -743,7 +743,7 @@ function Tabs() //{{{
get closedTabs()
{
- return service["json"].decode(service["sessionStore"].getClosedTabData(window));
+ return services.get("json").decode(services.get("sessionStore").getClosedTabData(window));
},
list: function (filter)
@@ -970,7 +970,7 @@ function Tabs() //{{{
tab = getBrowser().mTabContainer.selectedItem;
window.open();
- let win = service["windowMediator"].getMostRecentWindow("navigator:browser");
+ let win = services.get("windowMediator").getMostRecentWindow("navigator:browser");
copyTab(win.getBrowser().mCurrentTab, tab);
this.remove(tab, 1, false, 1);