Suppress errors from missing nodes
This commit is contained in:
parent
fbbd7f9945
commit
22aa339047
@ -1231,15 +1231,16 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
|
|
||||||
var foundContainers = [];
|
var foundContainers = [];
|
||||||
var containers = [
|
var containers = [
|
||||||
namedNodes.twistyAnchor.parentNode,
|
namedNodes.twistyAnchor && namedNodes.twistyAnchor.parentNode,
|
||||||
namedNodes.label.parentNode,
|
namedNodes.label && namedNodes.label.parentNode,
|
||||||
namedNodes.counter.parentNode,
|
namedNodes.counter && namedNodes.counter.parentNode,
|
||||||
namedNodes.closeAnchor.parentNode
|
namedNodes.closeAnchor && namedNodes.closeAnchor.parentNode
|
||||||
];
|
];
|
||||||
for (let i = 0, maxi = containers.length; i < maxi; i++)
|
for (let i = 0, maxi = containers.length; i < maxi; i++)
|
||||||
{
|
{
|
||||||
let container = containers[i];
|
let container = containers[i];
|
||||||
if (foundContainers.indexOf(container) > -1)
|
if (!container ||
|
||||||
|
foundContainers.indexOf(container) > -1)
|
||||||
continue;
|
continue;
|
||||||
this.initTabContentsOrderInternal(container, namedNodes, aForce);
|
this.initTabContentsOrderInternal(container, namedNodes, aForce);
|
||||||
foundContainers.push(container);
|
foundContainers.push(container);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user