Permalink
Browse files

Fixes #12569. Switches the check to run only if addEVentListener is u…

…ndefined, not if we detect an IE only function
  • Loading branch information...
1 parent f332390 commit 77d55cd214dd14387a0ad1939d0a6d01d906dcbd Merrifield, Jay committed Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/support.js
View
2 src/support.js
@@ -153,7 +153,7 @@ jQuery.support = (function() {
// are used, namely in IE. Short-circuiting here helps us to
// avoid an eval call (in setAttribute) which can cause CSP
// to go haywire. See: https://developer.mozilla.org/en/Security/CSP
- if ( div.attachEvent ) {
+ if ( !div.addEventListener ) {
for ( i in {
submit: true,
change: true,

0 comments on commit 77d55cd

Please sign in to comment.