]> source.dussan.org Git - jquery.git/commitdiff
Fixes #12569. Improve Feature Detect For oldIE bubbling. closes gh-967
authorMerrifield, Jay <jmerrifiel@gannett.com>
Mon, 15 Oct 2012 19:16:11 +0000 (15:16 -0400)
committerMike Sherov <mike.sherov@gmail.com>
Wed, 17 Oct 2012 19:02:31 +0000 (15:02 -0400)
src/support.js

index 7629c38e7fd4654e2d6d4a44ff5b7ad439628a89..4c6a07bae6b94a7cb0a95d96f42ca95d658d4b62 100644 (file)
@@ -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,