Skip to content

Commit

Permalink
backwards compatible node selection
Browse files Browse the repository at this point in the history
  • Loading branch information
cadorn committed Sep 3, 2013
1 parent 3bc7d3b commit 7a58ad7
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions extension/chrome/content/lib/reps.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,13 +586,16 @@ function(WINDOW, DOMPLATE, DOM, CSS, EVENTS)
CSS.toggleClass(logRow, "opened");

if (CSS.hasClass(logRow, "opened")) {

/* Lets only render the stack trace once we request it */
if (!DOM.getChildByClass(logRow.firstChild.firstChild, "head", "info")) {
this.infoTag.append({
'object': DOM.getChildByClass(logRow.firstChild.firstChild, "head").repObject
}, DOM.getChildByClass(logRow.firstChild.firstChild, "head"));
}

var head = logRow.getElementsByClassName("head")[0];
if (head) {
/* Lets only render the stack trace once we request it */
if (!head.getElementsByClassName("info")[0]) {
this.infoTag.append({
'object': head.repObject
}, head);
}
}
}
}
},
Expand Down Expand Up @@ -769,14 +772,15 @@ function(WINDOW, DOMPLATE, DOM, CSS, EVENTS)

if (CSS.hasClass(logRow, "opened"))
{

/* Lets only render the stack trace once we request it */
if (!DOM.getChildByClass(logRow.firstChild.firstChild, "head", "info"))
{
this.infoTag.append({'object':DOM.getChildByClass(logRow.firstChild.firstChild, "head").repObject,
'meta':DOM.getChildByClass(logRow.firstChild.firstChild, "head").repMeta},
DOM.getChildByClass(logRow.firstChild.firstChild, "head"));
}
var head = logRow.getElementsByClassName("head")[0];
if (head) {
/* Lets only render the stack trace once we request it */
if (!head.getElementsByClassName("info")[0]) {
this.infoTag.append({'object':head.repObject,
'meta':head.repMeta},
head);
}
}
}
}
},
Expand Down

0 comments on commit 7a58ad7

Please sign in to comment.