/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

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