$.getCSS (see bug #11)
[jquery.git] / event / event.js
index 5511b35..a78e1a9 100644 (file)
@@ -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 );
 
@@ -65,8 +65,8 @@ if ( $.browser == "mozilla" ) {
 } else if ( $.browser == "msie" ) {
 
        // Only works if you document.write() it
-       document.write('<script id="__ie_init" defer="true" ' + 
-               'src="javascript:void 0"><\/script>');
+       document.write('<scr' + 'ipt id=__ie_init defer=true ' + 
+               'src=javascript:void(0)><\/script>');
 
        // Use the defer script hack
        var script = document.getElementById('__ie_init');
@@ -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" ) {