# HG changeset patch # User Dan Fuhry # Date 1347729373 14400 # Node ID c690f0b39bcbd8549722ebb69a17257d34943b6c # Parent 53c7e3cc7fb577064f37b5d402f8d334bc911140 firebugx was breaking things diff -r 53c7e3cc7fb5 -r c690f0b39bcb includes/clientside/static/enano-lib-basic.js --- a/includes/clientside/static/enano-lib-basic.js Mon Jan 16 09:23:20 2012 -0500 +++ b/includes/clientside/static/enano-lib-basic.js Sat Sep 15 13:16:13 2012 -0400 @@ -22,15 +22,13 @@ // placeholder for window.console - used if firebug isn't present // http://getfirebug.com/firebug/firebugx.js -if (!window.console || !console.firebug) -{ - var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", - "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; +var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", +"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; - window.console = {}; - for (var i = 0; i < names.length; ++i) - window.console[names[i]] = function() {} -} +window.console || (window.console = {}); +for (var i = 0; i < names.length; ++i) + if ( typeof(window.console[names[i]]) != 'function' ) + window.console[names[i]] = function() {} console.info('Enano::JS runtime: starting system init');