From fde3d616ac3d8efe822c6dbf23d7659b00fc54b1 Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Fri, 21 Dec 2007 02:11:26 +0000 Subject: [PATCH] Removed check to prevent event from being fixed twice. Unfortunately, in IE this is sometimes necessary with its global event object. Binding both a mousedown and mousemove event is an example. --- src/event.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/event.js b/src/event.js index cb68c38..d5be7c5 100644 --- a/src/event.js +++ b/src/event.js @@ -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() { -- 1.7.10.4