Fix indent
This commit is contained in:
parent
25e7783899
commit
8898534f10
@ -1197,50 +1197,50 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
aTab.__treestyletab__initializingContentsOrder = true;
|
aTab.__treestyletab__initializingContentsOrder = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var d = this.document;
|
var d = this.document;
|
||||||
var namedNodes = {
|
var namedNodes = {
|
||||||
label : this.getTabLabel(aTab),
|
label : this.getTabLabel(aTab),
|
||||||
sound : this.getTabSoundButton(aTab),
|
sound : this.getTabSoundButton(aTab),
|
||||||
close : this.getTabClosebox(aTab),
|
close : this.getTabClosebox(aTab),
|
||||||
twistyAnchor : this.getTabTwistyAnchorNode(aTab),
|
twistyAnchor : this.getTabTwistyAnchorNode(aTab),
|
||||||
twisty : this.getTabTwisty(aTab),
|
twisty : this.getTabTwisty(aTab),
|
||||||
counter : d.getAnonymousElementByAttribute(aTab, 'class', this.kCOUNTER_CONTAINER)
|
counter : d.getAnonymousElementByAttribute(aTab, 'class', this.kCOUNTER_CONTAINER)
|
||||||
};
|
};
|
||||||
|
|
||||||
namedNodes.closeAnchor = namedNodes.label;
|
namedNodes.closeAnchor = namedNodes.label;
|
||||||
if (namedNodes.closeAnchor.parentNode != namedNodes.close.parentNode) {
|
if (namedNodes.closeAnchor.parentNode != namedNodes.close.parentNode) {
|
||||||
let containerFinder = d.createRange();
|
let containerFinder = d.createRange();
|
||||||
containerFinder.selectNode(namedNodes.closeAnchor);
|
containerFinder.selectNode(namedNodes.closeAnchor);
|
||||||
containerFinder.setEndAfter(namedNodes.close);
|
containerFinder.setEndAfter(namedNodes.close);
|
||||||
let container = containerFinder.commonAncestorContainer;
|
let container = containerFinder.commonAncestorContainer;
|
||||||
while (namedNodes.closeAnchor.parentNode != container)
|
while (namedNodes.closeAnchor.parentNode != container)
|
||||||
{
|
{
|
||||||
namedNodes.closeAnchor = namedNodes.closeAnchor.parentNode;
|
namedNodes.closeAnchor = namedNodes.closeAnchor.parentNode;
|
||||||
|
}
|
||||||
|
while (namedNodes.close.parentNode != container)
|
||||||
|
{
|
||||||
|
namedNodes.close = namedNodes.close.parentNode;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
while (namedNodes.close.parentNode != container)
|
|
||||||
|
namedNodes.counterAnchor = namedNodes.label;
|
||||||
|
|
||||||
|
var foundContainers = [];
|
||||||
|
var containers = [
|
||||||
|
namedNodes.twistyAnchor.parentNode,
|
||||||
|
namedNodes.label.parentNode,
|
||||||
|
namedNodes.counter.parentNode,
|
||||||
|
namedNodes.closeAnchor.parentNode
|
||||||
|
];
|
||||||
|
for (let i = 0, maxi = containers.length; i < maxi; i++)
|
||||||
{
|
{
|
||||||
namedNodes.close = namedNodes.close.parentNode;
|
let container = containers[i];
|
||||||
|
if (foundContainers.indexOf(container) > -1)
|
||||||
|
continue;
|
||||||
|
this.initTabContentsOrderInternal(container, namedNodes, aForce);
|
||||||
|
foundContainers.push(container);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namedNodes.counterAnchor = namedNodes.label;
|
|
||||||
|
|
||||||
var foundContainers = [];
|
|
||||||
var containers = [
|
|
||||||
namedNodes.twistyAnchor.parentNode,
|
|
||||||
namedNodes.label.parentNode,
|
|
||||||
namedNodes.counter.parentNode,
|
|
||||||
namedNodes.closeAnchor.parentNode
|
|
||||||
];
|
|
||||||
for (let i = 0, maxi = containers.length; i < maxi; i++)
|
|
||||||
{
|
|
||||||
let container = containers[i];
|
|
||||||
if (foundContainers.indexOf(container) > -1)
|
|
||||||
continue;
|
|
||||||
this.initTabContentsOrderInternal(container, namedNodes, aForce);
|
|
||||||
foundContainers.push(container);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
finally {
|
finally {
|
||||||
delete aTab.__treestyletab__initializingContentsOrder;
|
delete aTab.__treestyletab__initializingContentsOrder;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user