Created
June 12, 2009 14:41
$log will not cause errors in IE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $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