better fix for IE8 page up down
This commit is contained in:
parent
9fcabfa8ac
commit
adaded343d
|
@ -156,12 +156,14 @@ function Ace2Inner(){
|
||||||
|
|
||||||
// Ugly hack for Firefox 18
|
// Ugly hack for Firefox 18
|
||||||
// get the timeout and interval methods from the parent iframe
|
// get the timeout and interval methods from the parent iframe
|
||||||
var FIREFOX = /Firefox/i.test(navigator.userAgent);
|
// This hack breaks IE8
|
||||||
if(FIREFOX){
|
try{
|
||||||
setTimeout = parent.setTimeout;
|
setTimeout = parent.setTimeout;
|
||||||
clearTimeout = parent.clearTimeout;
|
clearTimeout = parent.clearTimeout;
|
||||||
setInterval = parent.setInterval;
|
setInterval = parent.setInterval;
|
||||||
clearInterval = parent.clearInterval;
|
clearInterval = parent.clearInterval;
|
||||||
|
}catch(err){
|
||||||
|
// IE8 can panic here.
|
||||||
}
|
}
|
||||||
|
|
||||||
var textFace = 'monospace';
|
var textFace = 'monospace';
|
||||||
|
|
Loading…
Reference in New Issue