TMPで現在のタブの次の位置に新しいタブを開く設定のとき、ブックマーク等から開いたタブが1つずれた位置に開かれていた

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5029 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-09-01 09:48:11 +00:00
parent e183977623
commit c9603addd0

View File

@ -458,13 +458,16 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() {
<![CDATA[ <![CDATA[
(function() { (function() {
var tabs = this.treeStyleTab.getDescendantTabs(this.mCurrentTab); var tabs = this.treeStyleTab.getDescendantTabs(this.mCurrentTab);
var index = !tabs.length ? if (tabs.length) {
($&) : var index = this.treeStyleTab.getPref("extensions.tabmix.openTabNextInverse") ?
this.treeStyleTab.getPref("extensions.tabmix.openTabNextInverse") ? tabs[tabs.length - 1]._tPos :
tabs[tabs.length - 1]._tPos : this.mCurrentTab._tPos ;
this.mCurrentTab._tPos ; if (index < aTab._tPos) index++;
if (index < aTab._tPos) index++; return index;
return index; }
else {
return ($&);
}
}).call(this) }).call(this)
]]> ]]>
) )