kiki/coffee/tools/log.coffee
2016-10-10 18:28:35 +02:00

21 lines
470 B
CoffeeScript

#000 0000000 0000000
#000 000 000 000
#000 000 000 000 0000
#000 000 000 000 000
#0000000 0000000 0000000
str = require './str'
log = ->
console.log (str(s) for s in [].slice.call arguments, 0).join " "
logScroll = ->
s = (str(s) for s in [].slice.call arguments, 0).join " "
console.log s
window.logview?.appendText s
if window?
module.exports = logScroll
else
module.exports = log