Ajax: remove deprecated extensions from ajax promise

(cherry-picked from 9d1b989f20)
Fixes gh-2084
Closes gh-2092
This commit is contained in:
Oleg Gaidarenko
2015-02-15 05:41:38 +03:00
parent 04fc801217
commit 9368a8cd8c
2 changed files with 10 additions and 12 deletions

View File

@@ -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" );
});
}