From what I have seen, it is the most reliable way to accomplish this. If you use such methods as console.count, simply add that function into my snippet. I got this idea from dustin diaz in this post in his comment to Felix. He said to use:
/*****************************
*
* window.console fix
*
****************************/
window.console = (typeof console == 'undefined') ? {
log: function(t) { alert(t); },
info: function() { },
debug: function() { }
} : console;
window.console = console || {
log: function() { },
info: function() { },
debug: function() { }
};
However, this does not work, as it tries to access console before his custom object, giving fatal errors in browsers such as IE 6.
I encourage you to find new ways to let firebug help you, because to become great, you must build on the work of others.
No comments:
Post a Comment