Month: October 2009

  • Avoiding undefined console

    When you’re writing JavaScript it’s handy to use console.log() to output debugging information to the Firebug or Safari console. The only problem is that this code will cause an error on browsers that don’t have a console object, like IE, or like Firefox without Firebug. One solution is to remove or comment out all the…