Fixed the double-firing IE bug. (Ticket #13)
This commit is contained in:
parent
c43e1e379d
commit
5c7551e318
|
@ -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() {
|
||||||
}
|
}
|
||||||
$.$$ready = [];
|
$.$$ready = [];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// If Mozilla is used
|
// If Mozilla is used
|
||||||
|
|
Loading…
Reference in a new issue