mirror of
https://github.com/jquery/jquery.git
synced 2026-02-03 05:14:58 -05:00
Ajax: remove deprecated extensions from ajax promise
(cherry-picked from 9d1b989f20)
Fixes gh-2084
Closes gh-2092
This commit is contained in:
@@ -72,11 +72,11 @@ module( "ajax", {
|
||||
},
|
||||
success: true,
|
||||
afterSend: function( request ) {
|
||||
request.complete(function() {
|
||||
request.always(function() {
|
||||
ok( true, "complete" );
|
||||
}).success(function() {
|
||||
}).done(function() {
|
||||
ok( true, "success" );
|
||||
}).error(function() {
|
||||
}).fail(function() {
|
||||
ok( false, "error" );
|
||||
});
|
||||
}
|
||||
@@ -90,11 +90,11 @@ module( "ajax", {
|
||||
},
|
||||
success: true,
|
||||
complete: function( xhr ) {
|
||||
xhr.complete(function() {
|
||||
xhr.always(function() {
|
||||
ok( true, "complete" );
|
||||
}).success(function() {
|
||||
}).done(function() {
|
||||
ok( true, "success" );
|
||||
}).error(function() {
|
||||
}).fail(function() {
|
||||
ok( false, "error" );
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user