1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 13:10:09 +02:00
Files
gitlit/app/node_modules/jquery/src/event/ajax.js
2018-05-18 10:48:24 +02:00

23 lines
346 B
JavaScript

define( [
"../core",
"../event"
], function( jQuery ) {
"use strict";
// Attach a bunch of functions for handling common AJAX events
jQuery.each( [
"ajaxStart",
"ajaxStop",
"ajaxComplete",
"ajaxError",
"ajaxSuccess",
"ajaxSend"
], function( i, type ) {
jQuery.fn[ type ] = function( fn ) {
return this.on( type, fn );
};
} );
} );