2016-01-09 13:36:35 -05:00
|
|
|
define( [
|
2015-06-26 11:53:49 -04:00
|
|
|
"../core",
|
|
|
|
"../event"
|
|
|
|
], function( jQuery ) {
|
|
|
|
|
2016-06-11 11:55:39 -04:00
|
|
|
"use strict";
|
|
|
|
|
2015-06-26 11:53:49 -04:00
|
|
|
// Attach a bunch of functions for handling common AJAX events
|
2016-01-09 13:36:35 -05:00
|
|
|
jQuery.each( [
|
|
|
|
"ajaxStart",
|
|
|
|
"ajaxStop",
|
|
|
|
"ajaxComplete",
|
|
|
|
"ajaxError",
|
|
|
|
"ajaxSuccess",
|
|
|
|
"ajaxSend"
|
|
|
|
], function( i, type ) {
|
2015-06-26 11:53:49 -04:00
|
|
|
jQuery.fn[ type ] = function( fn ) {
|
|
|
|
return this.on( type, fn );
|
|
|
|
};
|
2016-01-09 13:36:35 -05:00
|
|
|
} );
|
2015-06-26 11:53:49 -04:00
|
|
|
|
2016-01-09 13:36:35 -05:00
|
|
|
} );
|