aboutsummaryrefslogtreecommitdiffstats
path: root/bower_components/jquery/src/event
diff options
context:
space:
mode:
Diffstat (limited to 'bower_components/jquery/src/event')
-rw-r--r--bower_components/jquery/src/event/ajax.js15
-rw-r--r--bower_components/jquery/src/event/alias.js30
-rw-r--r--bower_components/jquery/src/event/support.js20
3 files changed, 30 insertions, 35 deletions
diff --git a/bower_components/jquery/src/event/ajax.js b/bower_components/jquery/src/event/ajax.js
index 278c403..98e194b 100644
--- a/bower_components/jquery/src/event/ajax.js
+++ b/bower_components/jquery/src/event/ajax.js
@@ -1,13 +1,20 @@
-define([
+define( [
"../core",
"../event"
], function( jQuery ) {
// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {
+jQuery.each( [
+ "ajaxStart",
+ "ajaxStop",
+ "ajaxComplete",
+ "ajaxError",
+ "ajaxSuccess",
+ "ajaxSend"
+], function( i, type ) {
jQuery.fn[ type ] = function( fn ) {
return this.on( type, fn );
};
-});
+} );
-});
+} );
diff --git a/bower_components/jquery/src/event/alias.js b/bower_components/jquery/src/event/alias.js
index 7e79175..1f06b8a 100644
--- a/bower_components/jquery/src/event/alias.js
+++ b/bower_components/jquery/src/event/alias.js
@@ -1,11 +1,12 @@
-define([
+define( [
"../core",
"../event"
], function( jQuery ) {
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
+ "change select submit keydown keypress keyup error contextmenu" ).split( " " ),
+ function( i, name ) {
// Handle event binding
jQuery.fn[ name ] = function( data, fn ) {
@@ -13,27 +14,12 @@ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl
this.on( name, null, data, fn ) :
this.trigger( name );
};
-});
+} );
-jQuery.fn.extend({
+jQuery.fn.extend( {
hover: function( fnOver, fnOut ) {
return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- },
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
}
-});
+} );
-});
+} );
diff --git a/bower_components/jquery/src/event/support.js b/bower_components/jquery/src/event/support.js
index caac517..9787f85 100644
--- a/bower_components/jquery/src/event/support.js
+++ b/bower_components/jquery/src/event/support.js
@@ -1,26 +1,28 @@
-define([
+define( [
+ "../var/document",
"../var/support"
-], function( support ) {
+], function( document, support ) {
-(function() {
+( function() {
var i, eventName,
div = document.createElement( "div" );
- // Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)
- for ( i in { submit: true, change: true, focusin: true }) {
+ // Support: IE<9 (lack submit/change bubble), Firefox (lack focus(in | out) events)
+ for ( i in { submit: true, change: true, focusin: true } ) {
eventName = "on" + i;
- if ( !(support[ i + "Bubbles" ] = eventName in window) ) {
+ if ( !( support[ i ] = eventName in window ) ) {
+
// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
div.setAttribute( eventName, "t" );
- support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false;
+ support[ i ] = div.attributes[ eventName ].expando === false;
}
}
// Null elements to avoid leaks in IE.
div = null;
-})();
+} )();
return support;
-});
+} );