diff options
author | jaubourg <j@ubourg.net> | 2012-06-11 21:04:34 +0200 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2012-06-11 21:04:34 +0200 |
commit | cac5b08f7215159ccd8ee328b02a7e2355aeb5bb (patch) | |
tree | 726621042ae841b8fff46ced41c36173af4c1f7c /test | |
parent | 801768386b9fd44f1282834449b4cd1ae1e8d593 (diff) | |
download | jquery-cac5b08f7215159ccd8ee328b02a7e2355aeb5bb.tar.gz jquery-cac5b08f7215159ccd8ee328b02a7e2355aeb5bb.zip |
Here is hoping everything works with the full build and the build without ajax... looking at you @dmethvin ;)
Diffstat (limited to 'test')
-rw-r--r-- | test/data/testinit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/data/testinit.js b/test/data/testinit.js index 3e0402c8f..7d340acee 100644 --- a/test/data/testinit.js +++ b/test/data/testinit.js @@ -132,7 +132,7 @@ function url( value ) { var oldCacheLength = 0, oldFragmentsLength = 0, oldTimersLength = 0, - oldActive = jQuery.active || 0; + oldActive = 0; /** * Ensures that tests have cleaned up properly after themselves. Should be passed as the @@ -168,7 +168,7 @@ function url( value ) { equal( jQuery.timers.length, oldTimersLength, "No timers are still running" ); oldTimersLength = jQuery.timers.length; } - if ( jQuery.active !== oldActive ) { + if ( jQuery.active !== undefined && jQuery.active !== oldActive ) { equal( jQuery.active, 0, "No AJAX requests are still active" ); oldActive = jQuery.active; } |