Debian Codegraph @

vendor/static/jquery/src/deprecated/ajax-event-alias.js

raw
1 import { jQuery } from "../core.js";
2
3 import "../ajax.js";
4 import "../event.js";
5
6 jQuery.each( [
7 "ajaxStart",
8 "ajaxStop",
9 "ajaxComplete",
10 "ajaxError",
11 "ajaxSuccess",
12 "ajaxSend"
13 ], function( _i, type ) {
14 jQuery.fn[ type ] = function( fn ) {
15 return this.on( type, fn );
16 };
17 } );