Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Properly handle click event (issue 5866)

  • Loading branch information...
commit aa8b8b112cf8af86e7774cca28acefbb7a06c469 1 parent 2a3f4bd
Jan Odvarko janodvarko authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 extension/content/firebug/console/functionMonitor.js
10 extension/content/firebug/console/functionMonitor.js
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.