Added IE8 workaround for missing console.log.

This commit is contained in:
Martin Edenhofer 2012-12-20 10:16:02 +01:00
parent 8e5d0cee09
commit 8ac9d097a9
3 changed files with 9 additions and 3 deletions

View file

@ -25,8 +25,5 @@ class _Singleton
@_log( module, level, args )
_log: ( module, level, args ) ->
return if !'console' in window
return if !'log' in console
return if !typeof console.log isnt 'function'
console.log "App.#{module}(#{level})", args

View file

@ -30,3 +30,11 @@
//= require_tree ./app/lib/base
//= require ./app/index.js.coffee
// IE8 workaround for missing console.log
if (!window.console) {
window.console = {}
}
if (!console.log) {
console.log = function(){}
}

1
public/json-znuny Normal file

File diff suppressed because one or more lines are too long