if (typeof console == "undefined" || typeof console.log == "undefined") var console = { log: function() {} };
via sitepoint.com
This is a fix for Firebug's console.log statements causing js execution problems in other browser. The above code has to be pasted at the top of javascript statements on your page or before the usage of the first console.log statement

Comments (0)
Leave a comment...