Skip to content
Permalink
Browse files

Inspect "window" object: fixes for Firefox 2.0

  • Loading branch information...
Infocatcher committed Oct 21, 2013
1 parent e1bba0b commit 588045ab6a16c38429715ac4369181d3eaf3a4db
Showing with 8 additions and 2 deletions.
  1. +8 −2 Attributes_Inspector/attrsInspector.js
@@ -1301,7 +1301,8 @@ function init() {
var stopTime = Date.now() + 3e3;
inspWin.setTimeout(function selectJsPanel() {
var panel = doc.getElementById("bxDocPanel");
var js = doc.getAnonymousElementByAttribute(panel, "viewerListEntry", "8");
var js = doc.getAnonymousElementByAttribute(panel, "viewerListEntry", "8")
|| doc.getAnonymousElementByAttribute(panel, "viewerListEntry", "7"); // DOM Inspector 1.8.1.x, Firefox 2.0.0.x
if(!js && Date.now() < stopTime) {
inspWin.setTimeout(selectJsPanel, 50);
return;
@@ -1315,7 +1316,12 @@ function init() {
if(tree && tree.columns && tree.view && tree.view.selection) {
var keyCol = tree.columns.getKeyColumn();
var view = tree.view;
for(var i = 0, rowCount = view.rowCount; i < rowCount; ++i) {
var rowCount = view.rowCount;
if(rowCount == 1) { // DOM Inspector 1.8.1.x, Firefox 2.0.0.x
tree.changeOpenState(0, true);
rowCount = view.rowCount;
}
for(var i = 0; i < rowCount; ++i) {
var cellText = view.getCellText(i, keyCol);
if(cellText == "defaultView") {
tree.changeOpenState(i, true);

0 comments on commit 588045a

Please sign in to comment.
You can’t perform that action at this time.