Fix the console fallbacks to not break older browsers.
Review Request #3814 — Created Jan. 29, 2013 and submitted — Latest diff uploaded
Fix the console fallbacks to not break older browsers. The console fallbacks were designed to work if no console API was defined, but it still ended up accessing stuff inside of console. It also had some unused code at the end. This has been fixed and should restore compatibility with Firefox 3.x and IE.
Tested with a valid console API, and made sure it still worked. Simulated console being undefined, and ensured that now works as well.