if( src && src.type ){
this.originalEvent = src;
this.type = src.type;
-
- // Fix timeStamp
- this.timeStamp = src.timeStamp || now();
+ this.timeStamp = src.timeStamp;
// Event type
}else
this.type = src;
+ if( !this.timeStamp )
+ this.timeStamp = now();
+
// Mark it as fixed
this[expando] = true;
};
// Otherwise, remember the function for later
else
// Add the function to the wait list
- jQuery.readyList.push( function() { return fn.call(this, jQuery); } );
+ jQuery.readyList.push( fn );
return this;
},
if ( jQuery.readyList ) {
// Execute all of them
jQuery.each( jQuery.readyList, function(){
- this.call( document );
+ this.call( document, jQuery );
});
// Reset the list of functions