(->
  methods = [
    'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
    'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
    'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
    'timeStamp', 'trace', 'warn'
  ]

  length = methods.length
  console = (window.console = window.console || {})
  noop = ->

  while (length -= 1)
    method = methods[length]

    if (!console[method])
      console[method] = noop
)()
