Merge pull request #1336 from poscar/ie_console_fix
Fixed IE crash related to console usage. (Fix #1321)pull/1332/merge
commit
5453764e31
|
@ -23,10 +23,10 @@
|
|||
window.html10n = (function(window, document, undefined) {
|
||||
var console = window.console
|
||||
function interceptConsole(method){
|
||||
var original = console[method]
|
||||
|
||||
if (!console) return function() {}
|
||||
|
||||
var original = console[method]
|
||||
|
||||
// do sneaky stuff
|
||||
if (original.bind){
|
||||
// Do this for normal browsers
|
||||
|
|
Loading…
Reference in New Issue