mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Improvements per @jaubourg
This commit is contained in:
parent
5b9bf13439
commit
ad690f8151
@ -194,7 +194,9 @@ function ajaxTest( title, expect, options ) {
|
||||
options.afterSend( request );
|
||||
}
|
||||
|
||||
return request.then( callIfDefined( "done", "success" ), callIfDefined( "fail", "error" ) );
|
||||
return request
|
||||
.done( callIfDefined( "done", "success" ) )
|
||||
.fail( callIfDefined( "fail", "error" ) );
|
||||
});
|
||||
|
||||
jQuery.when.apply( jQuery, requests ).always( complete, options.teardown, start);
|
||||
|
@ -141,7 +141,7 @@ var Globals = (function() {
|
||||
return {
|
||||
register: function( name ) {
|
||||
globals[ name ] = true;
|
||||
jQuery.globalEval( "var " + name );
|
||||
jQuery.globalEval( "var " + name + " = undefined;" );
|
||||
},
|
||||
cleanup: function() {
|
||||
var name,
|
||||
|
Loading…
Reference in New Issue
Block a user