Created
November 10, 2011 00:43
-
-
Save chanian/1353707 to your computer and use it in GitHub Desktop.
make IE<=7 slightly less painful
This file contains 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
(function () { | |
if(!window.console) { | |
console = { | |
log: function() { | |
var str = ""; | |
for(var i = 0; i < arguments.length; i++) { | |
str += arguments[i]; | |
} | |
document.body.appendChild(document.createTextNode(str)); | |
document.body.appendChild(document.createElement('br')); | |
} | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment