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:39:11 -0400 |
commit | 97c803acfb667f74774450e93666d9596f92bbf5 (patch) | |
tree | 9bb325d9a1808de11694ddda239ce248e552ab9f /src/event/ajax.js | |
parent | 3b9057a18de31b838bd0dd25ea466993b62f9dd9 (diff) | |
download | jquery-97c803acfb667f74774450e93666d9596f92bbf5.tar.gz jquery-97c803acfb667f74774450e93666d9596f92bbf5.zip |
Ajax: move ajax event aliases to their own file
Fixes #15126
Diffstat (limited to 'src/event/ajax.js')
-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 ); + }; +}); + +}); |