console.log.bind
This commit is contained in:
parent
5bd3cefdbe
commit
df9af7f162
@ -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) {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user