[Pkg-mozext-commits] [firebug] 66/82: fix layout panel raises 'target is null' error (firebug.js:2439) fflorent

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:45:41 UTC 2014


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

taffit pushed a commit to tag fbtest-1.11.2
in repository firebug.

commit 695791077be6d9b92645e9beef319988600cc66d
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Thu Jan 17 17:36:16 2013 +0100

    fix layout panel raises 'target is null' error (firebug.js:2439)  fflorent
---
 extension/content/firebug/html/layout.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/extension/content/firebug/html/layout.js b/extension/content/firebug/html/layout.js
index b13a3c5..34a060f 100644
--- a/extension/content/firebug/html/layout.js
+++ b/extension/content/firebug/html/layout.js
@@ -352,9 +352,9 @@ LayoutPanel.prototype = Obj.extend(Firebug.Panel,
                 "absoluteEdge";
         }
 
-        var node;
+        var node = this.panelNode.getElementsByClassName("outerLayoutBox").item(0);
         // If the layout panel content was already created, just fill in the new values
-        if (this.panelNode.getElementsByClassName("outerLayoutBox").item(0))
+        if (node)
         {
             // The styles for the positionLayoutBox need to be set manually
             var positionLayoutBox = this.panelNode.getElementsByClassName("positionLayoutBox").

-- 
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