diff options
author | Jesús Eduardo <heckyel@hyperbola.info> | 2017-08-06 20:43:24 -0500 |
---|---|---|
committer | Jesús Eduardo <heckyel@hyperbola.info> | 2017-08-06 20:43:24 -0500 |
commit | f7045b862a5b7c3de8ee2ea3da67616b38a667cc (patch) | |
tree | 504f420546df4934495bbd6f3d9761650b3783bd /lib/jquery/src/event/ajax.js | |
download | ytlibre-f7045b862a5b7c3de8ee2ea3da67616b38a667cc.tar.lz ytlibre-f7045b862a5b7c3de8ee2ea3da67616b38a667cc.tar.xz ytlibre-f7045b862a5b7c3de8ee2ea3da67616b38a667cc.zip |
first commit
Diffstat (limited to 'lib/jquery/src/event/ajax.js')
-rw-r--r-- | lib/jquery/src/event/ajax.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/jquery/src/event/ajax.js b/lib/jquery/src/event/ajax.js new file mode 100644 index 0000000..500b36c --- /dev/null +++ b/lib/jquery/src/event/ajax.js @@ -0,0 +1,22 @@ +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 ); + }; +} ); + +} ); |