Published in: JavaScript
URL: http://getfirebug.com/lite.html
Sometimes i forget to remove firebug console commands when debuging, which makes IE and some other browsers fail / cry.
To stop this happening use the below script from firebugx.js on the firebug lite homepage.
if (!window.console || !console.firebug){ 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() {} }
You need to login to post a comment.
