]> source.dussan.org Git - jquery.git/commitdiff
Prevent total unit test meltdown ... and now over to @jaubourg!
authorDave Methvin <dave.methvin@gmail.com>
Mon, 11 Jun 2012 18:07:02 +0000 (14:07 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Mon, 11 Jun 2012 18:07:02 +0000 (14:07 -0400)
test/data/testinit.js

index 2bf353788ae5f6427754a9277737869ba42c305d..3e0402c8f553bf0c41c5359c84458e9d78939d50 100644 (file)
@@ -132,7 +132,7 @@ function url( value ) {
        var oldCacheLength = 0,
                oldFragmentsLength = 0,
                oldTimersLength = 0,
-               oldActive = jQuery.active;
+               oldActive = jQuery.active || 0;
 
        /**
         * Ensures that tests have cleaned up properly after themselves. Should be passed as the