From cac5b08f7215159ccd8ee328b02a7e2355aeb5bb Mon Sep 17 00:00:00 2001 From: jaubourg Date: Mon, 11 Jun 2012 21:04:34 +0200 Subject: [PATCH] Here is hoping everything works with the full build and the build without ajax... looking at you @dmethvin ;) --- test/data/testinit.js | 4 ++-- 1 file 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; } -- 2.39.5