diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2014-06-02 12:39:11 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2014-06-02 12:41:24 -0400 |
commit | 8530a2fc726bf70cf57631c6054dd99488e890d7 (patch) | |
tree | b120519b21c1930b465b1a33510d0759a6f9eef3 /src/event | |
parent | 369add5f1d2128559aacd76b224d5171ba151eca (diff) | |
download | jquery-8530a2fc726bf70cf57631c6054dd99488e890d7.tar.gz jquery-8530a2fc726bf70cf57631c6054dd99488e890d7.zip |
Ajax: move ajax event aliases to their own file
Fixes #15126
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/ajax.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/event/ajax.js b/src/event/ajax.js new file mode 100644 index 000000000..278c403ee --- /dev/null +++ b/src/event/ajax.js @@ -0,0 +1,13 @@ +define([ + "../core", + "../event" +], function( jQuery ) { + +// 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 ); + }; +}); + +}); |