fix broken console.log in ie8
This commit is contained in:
parent
516464ba94
commit
e998da06d1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue