X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent.js;h=1fec18c8b9f4a0af9801ed8588bcef2afd811e89;hb=be59693037c4230e1b395e51a42c6fc55b577455;hp=5e72aaaabd58af178f7f13edecd7f92458dca776;hpb=7350e2e1cc671576804dab7cd82c739114146cb8;p=jquery.git diff --git a/src/event.js b/src/event.js index 5e72aaa..1fec18c 100644 --- a/src/event.js +++ b/src/event.js @@ -583,9 +583,11 @@ jQuery.Event.prototype = { // 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) - e.returnValue = false; + } else { + e.returnValue = false; + } }, stopPropagation: function() { this.isPropagationStopped = returnTrue;