// Degrade the console obj where not present.
// ==========================================
// http://fbug.googlecode.com/svn/branches/firebug1.2/lite/firebugx.js
// Relaxed to allow for Chrome's console.

function mock_console()
{
    var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
                 "dirxml", "group", "groupEnd", "time", "timeEnd", "count",
                 "trace", "profile", "profileEnd"];
    window.console = {};
    for (var i=0, name; name = names[i]; i++)
        window.console[name] = function() {};
}

if (!window.console)
{
    mock_console();
}

@@ -453,16 +453,46 @@
 e = %7B%7D;%0A
+    var mock = function() %7B%7D;%0A
     for 
@@ -560,29 +560,20 @@
 name%5D = 
-function() %7B%7D
+mock
 ;%0A%7D%0A%0Aif 

fix jshint warning