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

This commit is contained in:
John Resig 2006-06-18 01:50:12 +00:00
parent c43e1e379d
commit 5c7551e318

View file

@ -46,6 +46,7 @@ $.$$ready = [];
// Handle when the DOM is ready
$.ready = function() {
if ( !$.$$isReady ) {
$.$$isReady = true;
if ( $.$$ready ) {
for ( var i = 0; i < $.$$ready.length; i++ ) {
@ -53,6 +54,7 @@ $.ready = function() {
}
$.$$ready = [];
}
}
};
// If Mozilla is used