[Pkg-mozext-commits] [firebug] 30/59: Unwrap objects in console.dir and console.table (related to issue 7597)

David Prévot taffit at moszumanska.debian.org
Thu Aug 14 14:52:55 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 86bf4c2300fbf37d76dcd25a56827147d144e287
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date:   Wed Jul 30 14:47:04 2014 +0200

    Unwrap objects in console.dir and console.table (related to issue 7597)
---
 extension/content/firebug/console/consoleExposed.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/extension/content/firebug/console/consoleExposed.js b/extension/content/firebug/console/consoleExposed.js
index 870b6db..eebc904 100644
--- a/extension/content/firebug/console/consoleExposed.js
+++ b/extension/content/firebug/console/consoleExposed.js
@@ -446,7 +446,7 @@ var ConsoleHandler =
         {
             var logContent = row.getElementsByClassName("logContent").item(0);
             var tree = new DomBaseTree(context);
-            tree.replace(logContent, {object: obj}, true);
+            tree.replace(logContent, {object: Wrapper.unwrapObject(obj)}, true);
         });
     },
 
@@ -525,8 +525,9 @@ var ConsoleHandler =
         Console.logFormatted([formattedTime, label], context, "timeStamp");
     },
 
-    table: function(context, data, columns)
+    table: function(context, obj, columns)
     {
+        var data = Wrapper.unwrapObject(obj);
         TableRep.log(data, columns, context);
     },
 

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