Skip to content

Commit

Permalink
fix firephp#17 : All groups are initially expanded (even if specifyin…
Browse files Browse the repository at this point in the history
…g Collapsed = true)
  • Loading branch information
samleybrize committed Oct 13, 2014
1 parent a0944cf commit f221faf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions extension/chrome/content/lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,12 @@ function(DOMPLATE, REPS, CSS)
// NOTE: Throttleing is disabled which may caue the group to be interted in a different
// index than originally intended as other messages are inserted with throttleing enabled.
// This should be done in a better way in future.
var row = Firebug.Console.openGroup(msg, context, "group", null, true);

if(meta.Collapsed && meta.Collapsed=='true') {
CSS.removeClass(row, "opened");
}
if (meta.Collapsed && 'true' == meta.Collapsed) {
var row = Firebug.Console.openCollapsedGroup(msg, context, "group", null, true);
} else {
var row = Firebug.Console.openGroup(msg, context, "group", null, true);
}

if(meta.Color) {
row.style.color = meta.Color;
}
Expand Down

0 comments on commit f221faf

Please sign in to comment.