console.log (better IE support)

window.log = function(){ log.history = log.history || []; log.history.push(arguments); if(this.console){ console.log( Array.prototype.slice.call(arguments) ); } };
This version of console.log() does not cause errors in Internet Explorer browsers. Thanks to Paul Irish http://www.paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.