console.log.bind

This commit is contained in:
James Campos 2011-12-11 02:07:45 -08:00
parent 5bd3cefdbe
commit df9af7f162
2 changed files with 2 additions and 9 deletions

View File

@ -171,11 +171,7 @@
}
};
if (typeof console !== "undefined" && console !== null) {
log = function(arg) {
return console.log(arg);
};
}
log = console.log.bind(console);
if (!Object.keys) {
Object.keys = function(o) {

View File

@ -99,10 +99,7 @@ config =
'Interval': 30
# XXX chrome can't into `{log} = console`
if console?
# XXX scriptish - console.log.apply is not a function
log = (arg) ->
console.log arg
log = console.log.bind console
# XXX opera cannot into Object.keys
if not Object.keys