git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jquery event: event.timeStamp wasn't being created when passing just the type to...
[jquery.git]
/
src
/
event.js
diff --git
a/src/event.js
b/src/event.js
index
5f4b807
..
97565a8
100644
(file)
--- a/
src/event.js
+++ b/
src/event.js
@@
-399,13
+399,14
@@
jQuery.Event = function( src ){
if( src && src.type ){
this.originalEvent = src;
this.type = src.type;
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;
// Event type
}else
this.type = src;
+ if( !this.timeStamp )
+ this.timeStamp = now();
+
// Mark it as fixed
this[expando] = true;
};
// Mark it as fixed
this[expando] = true;
};
@@
-559,7
+560,7
@@
jQuery.fn.extend({
// Otherwise, remember the function for later
else
// Add the function to the wait list
// 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;
},
return this;
},
@@
-607,7
+608,7
@@
jQuery.extend({
if ( jQuery.readyList ) {
// Execute all of them
jQuery.each( jQuery.readyList, function(){
if ( jQuery.readyList ) {
// Execute all of them
jQuery.each( jQuery.readyList, function(){
- this.call( document );
+ this.call( document, jQuery );
});
// Reset the list of functions
});
// Reset the list of functions