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:
1052792
)
Make sure that we don't try to trigger non-existant native events on applets, embed...
author
John Resig
<jeresig@gmail.com>
Wed, 9 Dec 2009 22:49:31 +0000
(14:49 -0800)
committer
John Resig
<jeresig@gmail.com>
Wed, 9 Dec 2009 22:49:31 +0000
(14:49 -0800)
src/event.js
patch
|
blob
|
history
diff --git
a/src/event.js
b/src/event.js
index
e070cb2
..
afe92af
100644
(file)
--- a/
src/event.js
+++ b/
src/event.js
@@
-253,8
+253,10
@@
jQuery.event = {
var nativeFn, nativeHandler;
try {
- nativeFn = elem[ type ];
- nativeHandler = elem[ "on" + type ];
+ if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {
+ nativeFn = elem[ type ];
+ nativeHandler = elem[ "on" + type ];
+ }
// prevent IE from throwing an error for some elements with some event types, see #3533
} catch (e) {}