「タブの一覧」のポップアップでTab Utilitiesによって挿入された項目の影響でタブに対応する項目がインデントされていなかったのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7198 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
0f371ab3ae
commit
594aba34c0
@ -1306,16 +1306,17 @@ catch(e) {
|
||||
|
||||
var items = Array.slice(aEvent.originalTarget.childNodes);
|
||||
var firstItemIndex = 0;
|
||||
// ignore menu items inserted by Weave
|
||||
if (items.some(function(aItem, aIndex) {
|
||||
if ((aItem.getAttribute('anonid') || aItem.id) == 'sync-tabs-sep') {
|
||||
firstItemIndex = aIndex + 1;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
})) {
|
||||
items = items.slice(firstItemIndex);
|
||||
}
|
||||
// ignore menu items inserted by Weave (Firefox Sync), Tab Utilities, and others.
|
||||
items.forEach(function(aItem, aIndex) {
|
||||
if (
|
||||
aItem.getAttribute('anonid') ||
|
||||
aItem.id ||
|
||||
aItem.hidden ||
|
||||
aItem.localName != 'menuitem'
|
||||
)
|
||||
firstItemIndex = aIndex + 1;
|
||||
});
|
||||
items = items.slice(firstItemIndex);
|
||||
|
||||
var b = this.getTabBrowserFromChild(aEvent.originalTarget) || gBrowser;
|
||||
this.getTabsArray(b).forEach(function(aTab, aIndex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user