[Pkg-mozext-commits] [firebug] 25/48: Issue 7484 (Hovering JavaScript variables while debugging is not showing an info popup for properties) https://code.google.com/p/fbug/issues/detail?id=7484

David Prévot taffit at moszumanska.debian.org
Tue Jun 3 01:47:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository firebug.

commit c86dc4d2f05c0813b074770e31abbcde90f21b91
Author: Sebastian Zartner <sebastianzartner at gmail.com>
Date:   Thu May 29 01:16:49 2014 +0200

    Issue 7484 (Hovering JavaScript variables while debugging is not showing
    an info popup for properties)
    https://code.google.com/p/fbug/issues/detail?id=7484
---
 extension/content/firebug/debugger/script/scriptPanel.js | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/extension/content/firebug/debugger/script/scriptPanel.js b/extension/content/firebug/debugger/script/scriptPanel.js
index 5eb1d32..6ddbd07 100644
--- a/extension/content/firebug/debugger/script/scriptPanel.js
+++ b/extension/content/firebug/debugger/script/scriptPanel.js
@@ -1759,7 +1759,16 @@ ScriptPanel.prototype = Obj.extend(BasePanel,
                 return false;
 
             rangeOffset = rangeOffset || 0;
-            var expr = getExpressionAt(rangeParent.data, rangeOffset);
+            var row = Dom.getAncestorByClass(rangeParent, "firebug-line");
+            var expr = null;
+            if (row)
+            {
+                var range = rangeParent.ownerDocument.createRange();
+                range.setStart(row, 0);
+                range.setEnd(rangeParent, rangeOffset);
+                expr = getExpressionAt(range.startContainer.textContent, range.toString().length);
+            }
+
             if (!expr || !expr.expr)
                 return false;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list