Skip to content

Commit

Permalink
Remove oldIE submit/change bubble detects.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Jan 4, 2013
1 parent 11e6a66 commit 4ee1b03
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/support.js
@@ -1,6 +1,6 @@
jQuery.support = (function() {

var support, all, a, select, opt, input, fragment, eventName, i,
var support, all, a, select, opt, input, fragment,
div = document.createElement("div");

// Setup
Expand Down Expand Up @@ -82,13 +82,10 @@ jQuery.support = (function() {
div.cloneNode( true ).click();
}

// Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event)
// Support: Firefox 17+
// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php
for ( i in { submit: true, change: true, focusin: true }) {
div.setAttribute( eventName = "on" + i, "t" );

support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false;
}
div.setAttribute( "onfocusin", "t" );
support.focusinBubbles = "onfocusin" in window || div.attributes.onfocusin.expando === false;

// Run tests that need a body at doc ready
jQuery(function() {
Expand Down

0 comments on commit 4ee1b03

Please sign in to comment.