/application/static/libs/adminlte/bower_components/jquery/src/event/ajax.js
https://bitbucket.org/tin_gimranoff/docstar · JavaScript · 22 lines · 18 code · 3 blank · 1 comment · 0 complexity · ab2368042f88d56a4e8eb7ef0885d52d MD5 · raw file
- 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 );
- };
- } );
- } );