Skip to content

Commit

Permalink
Removed check to prevent event from being fixed twice. Unfortunately,…
Browse files Browse the repository at this point in the history
… in IE this is sometimes necessary with its global event object. Binding both a mousedown and mousemove event is an example.
  • Loading branch information
brandonaaron committed Dec 21, 2007
1 parent 50c40ad commit fde3d61
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/event.js
Expand Up @@ -263,18 +263,11 @@ jQuery.event = {
},

fix: function(event) {
// Short-circuit if the event has already been fixed by jQuery.event.fix
if ( event[ expando ] )
return event;

// store a copy of the original event object
// and clone to set read-only properties
var originalEvent = event;
event = jQuery.extend({}, originalEvent);

// Mark the event as fixed by jQuery.event.fix
event[ expando ] = true;

// add preventDefault and stopPropagation since
// they will not work on the clone
event.preventDefault = function() {
Expand Down

0 comments on commit fde3d61

Please sign in to comment.