Mercurial > nebulaweb3
annotate default/node_modules/jquery/src/event/ajax.js @ 0:1d038bc9b3d2 default tip
Up:default
author | Liny <dev@neowd.com> |
---|---|
date | Sat, 31 May 2025 09:21:51 +0800 |
parents | |
children |
rev | line source |
---|---|
0 | 1 define( [ |
2 "../core", | |
3 "../event" | |
4 ], function( jQuery ) { | |
5 | |
6 "use strict"; | |
7 | |
8 // Attach a bunch of functions for handling common AJAX events | |
9 jQuery.each( [ | |
10 "ajaxStart", | |
11 "ajaxStop", | |
12 "ajaxComplete", | |
13 "ajaxError", | |
14 "ajaxSuccess", | |
15 "ajaxSend" | |
16 ], function( i, type ) { | |
17 jQuery.fn[ type ] = function( fn ) { | |
18 return this.on( type, fn ); | |
19 }; | |
20 } ); | |
21 | |
22 } ); |