"use strict";
var readyCallbacks = [],
- readyFiring = false,
whenReady = function( fn ) {
readyCallbacks.push( fn );
},
whenReady = function( fn ) {
readyCallbacks.push( fn );
- if ( !readyFiring ) {
- readyFiring = true;
-
- while ( readyCallbacks.length ) {
- fn = readyCallbacks.shift();
- if ( jQuery.isFunction( fn ) ) {
- executeReady( fn );
- }
+ while ( readyCallbacks.length ) {
+ fn = readyCallbacks.shift();
+ if ( jQuery.isFunction( fn ) ) {
+ executeReady( fn );
}
- readyFiring = false;
}
};