fixes IE8 error by only redifining if firefox

This commit is contained in:
John McLear 2013-02-06 19:43:28 +00:00
parent 5b31030958
commit dd49c71af9

View file

@ -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;