Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 1 | define( [ |
| 2 | "../core", |
Renovate bot | f591dcf | 2023-12-30 14:13:54 +0000 | [diff] [blame] | 3 | "../ajax", |
Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 4 | "../event" |
| 5 | ], function( jQuery ) { |
| 6 | |
| 7 | "use strict"; |
| 8 | |
Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 9 | jQuery.each( [ |
| 10 | "ajaxStart", |
| 11 | "ajaxStop", |
| 12 | "ajaxComplete", |
| 13 | "ajaxError", |
| 14 | "ajaxSuccess", |
| 15 | "ajaxSend" |
Renovate bot | f591dcf | 2023-12-30 14:13:54 +0000 | [diff] [blame] | 16 | ], function( _i, type ) { |
Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 17 | jQuery.fn[ type ] = function( fn ) { |
| 18 | return this.on( type, fn ); |
| 19 | }; |
| 20 | } ); |
| 21 | |
| 22 | } ); |