diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-22 19:19:26 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-22 19:19:26 +0100 |
| commit | d42c8b528eb595101954f478e0024e3f079f6fbf (patch) | |
| tree | 61a528cf94f1f6941f4683ae8736a4a0135c035e /templates/assets/jquery/src/event/ajax.js | |
| download | minionlivesmatter-d42c8b528eb595101954f478e0024e3f079f6fbf.tar.gz minionlivesmatter-d42c8b528eb595101954f478e0024e3f079f6fbf.zip | |
first implementation of fun stats site
Diffstat (limited to 'templates/assets/jquery/src/event/ajax.js')
| -rw-r--r-- | templates/assets/jquery/src/event/ajax.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/assets/jquery/src/event/ajax.js b/templates/assets/jquery/src/event/ajax.js new file mode 100644 index 0000000..98e194b --- /dev/null +++ b/templates/assets/jquery/src/event/ajax.js @@ -0,0 +1,20 @@ +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 ); + }; +} ); + +} ); |
