Commit ad690f81 authored by Richard Gibson's avatar Richard Gibson

Improvements per @jaubourg

parent 5b9bf134
...@@ -194,7 +194,9 @@ function ajaxTest( title, expect, options ) { ...@@ -194,7 +194,9 @@ function ajaxTest( title, expect, options ) {
options.afterSend( request ); 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); jQuery.when.apply( jQuery, requests ).always( complete, options.teardown, start);
......
...@@ -141,7 +141,7 @@ var Globals = (function() { ...@@ -141,7 +141,7 @@ var Globals = (function() {
return { return {
register: function( name ) { register: function( name ) {
globals[ name ] = true; globals[ name ] = true;
jQuery.globalEval( "var " + name ); jQuery.globalEval( "var " + name + " = undefined;" );
}, },
cleanup: function() { cleanup: function() {
var name, var name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment