Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Properly handle click event (issue 5866)
  • Loading branch information
janodvarko committed Aug 26, 2012
1 parent 2a3f4bd commit aa8b8b1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions extension/content/firebug/console/functionMonitor.js
Expand Up @@ -135,11 +135,15 @@ var FunctionMonitorRep = domplate(Firebug.Rep,

onToggleStackTrace: function(event)
{
var target = event.target;
var target = event.originalTarget;

// Clicking on the source link uses default navigation.
if (Css.hasClass(target, "objectLink-sourceLink"))
// Only clicking on the expand button or the function title actually expands
// the function call log. All other clicks keep default behavior
if (!(Css.hasClass(target, "objectBox-functionCall") ||
Css.hasClass(target, "functionCallTitle")))
{
return;
}

var objectBox = Dom.getAncestorByClass(target, "objectBox-functionCall");
if (!objectBox)
Expand Down

0 comments on commit aa8b8b1

Please sign in to comment.