]> source.dussan.org Git - jquery.git/commitdiff
Here is hoping everything works with the full build and the build without ajax.....
authorjaubourg <j@ubourg.net>
Mon, 11 Jun 2012 19:04:34 +0000 (21:04 +0200)
committerjaubourg <j@ubourg.net>
Mon, 11 Jun 2012 19:04:34 +0000 (21:04 +0200)
test/data/testinit.js

index 3e0402c8f553bf0c41c5359c84458e9d78939d50..7d340acee42c212fa4008aa8cab21a8c78268647 100644 (file)
@@ -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;
                }