使console.log无效

tmpDebug = console.log
this.debug = () ->
    tmpDebug.apply console, arguments
emptyFunction = ->

for method of console
    if Object.prototype.toString.call method is '[object Function]'
        console[method] = emptyFunction
2014-04-29 11:19