mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 17:14:58 -05:00
Tests: Improve jsonp tests
Since global variable for callback always would be equal to undefined value it better to check for boolean instead
This commit is contained in:
@@ -196,7 +196,7 @@ window.Globals = (function() {
|
||||
return {
|
||||
register: function( name ) {
|
||||
globals[ name ] = true;
|
||||
supportjQuery.globalEval( "var " + name + " = undefined;" );
|
||||
supportjQuery.globalEval( "var " + name + " = true;" );
|
||||
},
|
||||
cleanup: function() {
|
||||
var name,
|
||||
|
||||
Reference in New Issue
Block a user