Commit 5c7551e3 authored by John Resig's avatar John Resig

Fixed the double-firing IE bug. (Ticket #13)

parent c43e1e37
...@@ -46,6 +46,7 @@ $.$$ready = []; ...@@ -46,6 +46,7 @@ $.$$ready = [];
// Handle when the DOM is ready // Handle when the DOM is ready
$.ready = function() { $.ready = function() {
if ( !$.$$isReady ) {
$.$$isReady = true; $.$$isReady = true;
if ( $.$$ready ) { if ( $.$$ready ) {
for ( var i = 0; i < $.$$ready.length; i++ ) { for ( var i = 0; i < $.$$ready.length; i++ ) {
...@@ -53,6 +54,7 @@ $.ready = function() { ...@@ -53,6 +54,7 @@ $.ready = function() {
} }
$.$$ready = []; $.$$ready = [];
} }
}
}; };
// If Mozilla is used // If Mozilla is used
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment