Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Properly handle click event (issue 5866)

  • Loading branch information...
commit aa8b8b112cf8af86e7774cca28acefbb7a06c469 1 parent 2a3f4bd
Jan Odvarko authored August 26, 2012
10  extension/content/firebug/console/functionMonitor.js
@@ -135,11 +135,15 @@ var FunctionMonitorRep = domplate(Firebug.Rep,
135 135
 
136 136
     onToggleStackTrace: function(event)
137 137
     {
138  
-        var target = event.target;
  138
+        var target = event.originalTarget;
139 139
 
140  
-        // Clicking on the source link uses default navigation.
141  
-        if (Css.hasClass(target, "objectLink-sourceLink"))
  140
+        // Only clicking on the expand button or the function title actually expands
  141
+        // the function call log. All other clicks keep default behavior
  142
+        if (!(Css.hasClass(target, "objectBox-functionCall") ||
  143
+            Css.hasClass(target, "functionCallTitle")))
  144
+        {
142 145
             return;
  146
+        }
143 147
 
144 148
         var objectBox = Dom.getAncestorByClass(target, "objectBox-functionCall");
145 149
         if (!objectBox)

0 notes on commit aa8b8b1

Please sign in to comment.
Something went wrong with that request. Please try again.