From 9b7bbc619b4fe328188d9f12a438e148436fc9a6 Mon Sep 17 00:00:00 2001
From: John Resig <jeresig@gmail.com>
Date: Fri, 16 Jun 2006 04:23:30 +0000
Subject: [PATCH] DOMContentLoaded works in Opera 9b2+, so I have it firing
 for that now too - the means that there is a DOM Ready
 solution for every major browser! (Older version of Opera
 simply fallback to window.onload)

---
 event/event.js |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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" ) {
-- 
1.7.10.4