jquery fx & event: replaced the use of .apply(), where .call() could had been used.
[jquery.git] / src / event.js
index 8e52081..a255f55 100644 (file)
@@ -33,9 +33,6 @@ jQuery.event = {
 
                        // Store data in unique handler 
                        handler.data = data;
-
-                       // Set the guid of unique handler to the same of original handler, so it can be removed 
-                       handler.guid = fn.guid;
                }
 
                // Init the element's event structure
@@ -284,7 +281,7 @@ jQuery.event = {
                // and "clone" to set read-only properties
                var originalEvent = event;
                event = { originalEvent: originalEvent };
-               var props = "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");
+               var props = "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");
                for ( var i=props.length; i; i-- )
                        event[ props[i] ] = originalEvent[ props[i] ];
                
@@ -498,7 +495,7 @@ jQuery.extend({
                        if ( jQuery.readyList ) {
                                // Execute all of them
                                jQuery.each( jQuery.readyList, function(){
-                                       this.apply( document );
+                                       this.call( document );
                                });
                                
                                // Reset the list of functions