4 ], function( jQuery
) {
6 // Attach a bunch of functions for handling common AJAX events
7 jQuery
.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i
, type
) {
8 jQuery
.fn
[ type
] = function( fn
) {
9 return this.on( type
, fn
);