PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1define( [
 2	"../core",
 3	"../event"
 4], function( jQuery ) {
 5
 6"use strict";
 7
 8// Attach a bunch of functions for handling common AJAX events
 9jQuery.each( [
10	"ajaxStart",
11	"ajaxStop",
12	"ajaxComplete",
13	"ajaxError",
14	"ajaxSuccess",
15	"ajaxSend"
16], function( i, type ) {
17	jQuery.fn[ type ] = function( fn ) {
18		return this.on( type, fn );
19	};
20} );
21
22} );