git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7350e2e
)
No need to set returnValue if preventDefault exists. Thanks kangax for the catch.
author
jeresig
<jeresig@gmail.com>
Mon, 20 Sep 2010 14:16:36 +0000
(10:16 -0400)
committer
jeresig
<jeresig@gmail.com>
Mon, 20 Sep 2010 14:16:36 +0000
(10:16 -0400)
src/event.js
patch
|
blob
|
history
diff --git
a/src/event.js
b/src/event.js
index
5e72aaa
..
1fec18c
100644
(file)
--- 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;