fix broken console.log in ie8

This commit is contained in:
Jörn Friedrich Dreyer 2012-12-18 21:38:01 +01:00
parent 516464ba94
commit e998da06d1
1 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,13 @@ if (oc_debug !== true) {
console[methods[i]] = function () { };
}
}
/**
* fix broken console log in ie8
*/
if (typeof console === "undefined" || typeof console.log === "undefined") {
console = {};
console.log = function() {};
}
/**
* translate a string
* @param app the id of the app for which to translate the string