diff options
author | Kris Maglione <maglione.k@gmail.com> | 2008-12-17 16:43:14 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2008-12-17 16:43:14 -0500 |
commit | f004545036292080b3d4d906a251dcd753b621b6 (patch) | |
tree | 4bbe7fdbc939b646497b9c3ade2808d0283d57ea /common/content | |
parent | 1ffb5e90adcdfa19f2babf619b02aa06ddd83026 (diff) | |
download | pentadactyl-f004545036292080b3d4d906a251dcd753b621b6.tar.gz |
Minor cleanup
Diffstat (limited to 'common/content')
-rw-r--r-- | common/content/tabs.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js index 93ac3ca9..6fee2043 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -263,12 +263,12 @@ function Tabs() //{{{ mappings.add([modes.NORMAL], ["d"], "Delete current buffer", - function (count) { tabs.remove(getBrowser().mCurrentTab, count, false, 0); }, + function (count) { tabs.remove(tabs.getTab(), count, false, 0); }, { flags: Mappings.flags.COUNT }); mappings.add([modes.NORMAL], ["D"], "Delete current buffer, focus tab to the left", - function (count) { tabs.remove(getBrowser().mCurrentTab, count, true, 0); }, + function (count) { tabs.remove(tabs.getTab(), count, true, 0); }, { flags: Mappings.flags.COUNT }); mappings.add([modes.NORMAL], ["gb"], @@ -345,7 +345,7 @@ function Tabs() //{{{ liberator.echoerr("E94: No matching tab for " + arg); } else // just remove the current tab - tabs.remove(getBrowser().mCurrentTab, count > 0 ? count : 1, special, 0); + tabs.remove(tabs.getTab(), count > 0 ? count : 1, special, 0); }, { argCount: "?", @@ -733,7 +733,7 @@ function Tabs() //{{{ if (index != undefined) return getBrowser().mTabs[index]; - return getBrowser().mTabContainer.selectedItem; + return getBrowser().mCurrentTab; }, get closedTabs() |