Build: update grunt-jscs-checker and pass with the new rules
[jquery.git] / src / event / ajax.js
blobc808b583e592333f04979c7cc74680fba8ed75e3
1 define([
2         "../core",
3         "../event"
4 ], function( jQuery ) {
6 // Attach a bunch of functions for handling common AJAX events
7 jQuery.each([
8         "ajaxStart",
9         "ajaxStop",
10         "ajaxComplete",
11         "ajaxError",
12         "ajaxSuccess",
13         "ajaxSend"
14 ], function( i, type ) {
15         jQuery.fn[ type ] = function( fn ) {
16                 return this.on( type, fn );
17         };
18 });
20 });