Sha256: 34d1cbb52075c960d205a1b948bd06e0d847f059548f14d1136f000fd046033f

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

Joosy.Modules.Log =
  log: (args...) ->
    return unless console?

    if console.log.apply?
      args.unshift "Joosy>"
      console.log args...
    else
      console.log args.first()

  debug: (args...) ->
    return unless Joosy.debug
    @log args...

  debugAs: (context, string, args...) ->
    return unless Joosy.debug
    context = Joosy.Module.__className(context) || 'unknown context'
    @debug "#{context}> #{string}", args...

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
joosy-0.1.0.RC2 app/assets/javascripts/joosy/core/modules/log.js.coffee