X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=event%2Fevent.js;fp=event%2Fevent.js;h=a78e1a989c60a3176849e5fe7d352712447e1090;hb=9b7bbc619b4fe328188d9f12a438e148436fc9a6;hp=b705dbadc269f73b7631c0cb9f8af315ec215fa3;hpb=66bd98be22d50cc09bf14f9aaa0102771a3b990d;p=jquery.git diff --git a/event/event.js b/event/event.js index b705dba..a78e1a9 100644 --- a/event/event.js +++ b/event/event.js @@ -56,7 +56,7 @@ $.ready = function() { }; // If Mozilla is used -if ( $.browser == "mozilla" ) { +if ( $.browser == "mozilla" || $.browser == "opera" ) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", $.ready, null ); @@ -79,8 +79,8 @@ if ( $.browser == "mozilla" ) { // Clear from memory script = null; -// If Safari or Opera is used -} else { +// If Safari is used +} else if ( $.browser == "safari" ) { $.$$timer = setInterval(function(){ if ( document.readyState == "loaded" || document.readyState == "complete" ) {