[jQuery] Error occurs in IE8
Hello,
I've found an error in Line 2853:
IE8 stopps with follow Error Message:
'Mitglied nicht gefunden' in Zeile 2853 Zeichen 9
'Member not found' Line 2853 Char 9
This happens with the fixClick Plugin (http://plugins.jquery.com/
project/FixClick)
I think the Problem is in the function jQuery.Event.prototype.
I have made some modifications on it:
<code>
// jQuery.Event is based on DOM3 Events as specified by the ECMAScript
Language Binding
// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
jQuery.Event.prototype = {
preventDefault: function() {
this.isDefaultPrevented = returnTrue;
var e = this.originalEvent;
if (!e) {
return;
}
// if preventDefault exists run it on the original event
if (e.preventDefault) {
e.preventDefault();
}
// otherwise set the returnValue property of the original event to
false (IE)
try {
e.returnValue = false;
} catch(e) {}
},
stopPropagation: function() {
this.isPropagationStopped = returnTrue;
var e = this.originalEvent;
if (!e) {
return;
}
// if stopPropagation exists run it on the original event
if (e.stopPropagation) {
e.stopPropagation();
// otherwise set the cancelBubble property of the original event
to true (IE)
try {
e.cancelBubble = true;
} catch(e) {}
},
stopImmediatePropagation: function() {
this.isImmediatePropagationStopped = returnTrue;
this.stopPropagation();
},
isDefaultPrevented: returnFalse,
isPropagationStopped: returnFalse,
isImmediatePropagationStopped: returnFalse
};
</code>