fixes IE8 error by only redifining if firefox

pull/1457/head
John McLear 2013-02-06 19:43:28 +00:00
parent 5b31030958
commit dd49c71af9
1 changed files with 7 additions and 4 deletions

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;