fixes IE8 error by only redifining if firefox
This commit is contained in:
parent
5b31030958
commit
dd49c71af9
1 changed files with 7 additions and 4 deletions
|
@ -156,10 +156,13 @@ function Ace2Inner(){
|
|||
|
||||
// Ugly hack for Firefox 18
|
||||
// get the timeout and interval methods from the parent iframe
|
||||
setTimeout = parent.setTimeout;
|
||||
clearTimeout = parent.clearTimeout;
|
||||
setInterval = parent.setInterval;
|
||||
clearInterval = parent.clearInterval;
|
||||
var FIREFOX = /Firefox/i.test(navigator.userAgent);
|
||||
if(FIREFOX){
|
||||
setTimeout = parent.setTimeout;
|
||||
clearTimeout = parent.clearTimeout;
|
||||
setInterval = parent.setInterval;
|
||||
clearInterval = parent.clearInterval;
|
||||
}
|
||||
|
||||
var textFace = 'monospace';
|
||||
var textSize = 12;
|
||||
|
|
Loading…
Reference in a new issue