commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / bower_components / jquery / src / event / support.js
1 define([
2 "../var/support"
3 ], function( support ) {
4
5 (function() {
6 var i, eventName,
7 div = document.createElement( "div" );
8
9 // Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)
10 for ( i in { submit: true, change: true, focusin: true }) {
11 eventName = "on" + i;
12
13 if ( !(support[ i + "Bubbles" ] = eventName in window) ) {
14 // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
15 div.setAttribute( eventName, "t" );
16 support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false;
17 }
18 }
19
20 // Null elements to avoid leaks in IE.
21 div = null;
22 })();
23
24 return support;
25
26 });