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.
This commit is contained in:
parent
50c40add5a
commit
fde3d616ac
|
@ -263,18 +263,11 @@ jQuery.event = {
|
||||||
},
|
},
|
||||||
|
|
||||||
fix: function(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
|
// store a copy of the original event object
|
||||||
// and clone to set read-only properties
|
// and clone to set read-only properties
|
||||||
var originalEvent = event;
|
var originalEvent = event;
|
||||||
event = jQuery.extend({}, originalEvent);
|
event = jQuery.extend({}, originalEvent);
|
||||||
|
|
||||||
// Mark the event as fixed by jQuery.event.fix
|
|
||||||
event[ expando ] = true;
|
|
||||||
|
|
||||||
// add preventDefault and stopPropagation since
|
// add preventDefault and stopPropagation since
|
||||||
// they will not work on the clone
|
// they will not work on the clone
|
||||||
event.preventDefault = function() {
|
event.preventDefault = function() {
|
||||||
|
|
Loading…
Reference in a new issue