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:
Oleg Gaidarenko
2014-02-18 21:50:42 +04:00
parent 9cdaa75b86
commit 1c04178939
2 changed files with 3 additions and 3 deletions

View File

@@ -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,