Skip to content

Instantly share code, notes, and snippets.

@oskarkrawczyk
Created June 12, 2009 14:41
$log will not cause errors in IE
// $log will not cause errors in IE
// Author: Oskar Krawczyk (oskar dot krawczyk dot com after nouincolor)
Window.implement({
$log: function() {
if(typeof console!=='undefined' && typeof console.log !== 'undefined') {
console.log(arguments.length <= 1 ? arguments[0] : arguments);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment