]> source.dussan.org Git - jquery.git/commitdiff
Update QUnit, fix visibility of #dl and pass JSLint in effects.js
authortimmywil <tim.willison@thisismedium.com>
Sun, 17 Apr 2011 18:08:52 +0000 (14:08 -0400)
committertimmywil <tim.willison@thisismedium.com>
Sun, 17 Apr 2011 18:12:05 +0000 (14:12 -0400)
src/effects.js
test/index.html
test/qunit

index 2c7b44cb059d2adcf2fae27c6c9418196fa290fa..7e693d8d1abcb718f4ce0088317984ced117a9e1 100644 (file)
@@ -165,7 +165,7 @@ jQuery.fn.extend({
                                                        this.style.display = "inline-block";
 
                                                } else {
-                                                       var display = defaultDisplay(this.nodeName);
+                                                       display = defaultDisplay(this.nodeName);
 
                                                        // inline-level elements accept inline-block;
                                                        // block-level elements need to be inline with layout
@@ -266,6 +266,27 @@ jQuery.fn.extend({
 
 });
 
+// Animations created synchronously will run synchronously
+function createFxNow() {
+       setTimeout( clearFxNow, 0 );
+       return ( fxNow = jQuery.now() );
+}
+
+function clearFxNow() {
+       fxNow = undefined;
+}
+
+// Generate parameters to create a standard animation
+function genFx( type, num ) {
+       var obj = {};
+
+       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {
+               obj[ this ] = type;
+       });
+
+       return obj;
+}
+
 // Generate shortcuts for custom animations
 jQuery.each({
        slideDown: genFx("show", 1),
@@ -581,25 +602,4 @@ function defaultDisplay( nodeName ) {
        return elemdisplay[ nodeName ];
 }
 
-// Animations created synchronously will run synchronously
-function createFxNow() {
-       setTimeout( clearFxNow, 0 );
-       return ( fxNow = jQuery.now() );
-}
-
-function clearFxNow() {
-       fxNow = undefined;
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, num ) {
-       var obj = {};
-
-       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {
-               obj[ this ] = type;
-       });
-
-       return obj;
-}
-
 })( jQuery );
index 625562722acaafe37e30dcfdd5c70a2b39ac93af..b19673d99630adeb668346eba1bdbedac632e65f 100644 (file)
@@ -60,7 +60,7 @@
        </div>
        <!-- this iframe is outside the #qunit-fixture so it won't reload constantly wasting time, but it means the tests must be "safe" and clean up after themselves -->
        <iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
-       <dl id="dl" style="position:absolute;top:-32767px;left:-32767px;">
+       <dl id="dl" style="position:absolute;top:-32767px;left:-32767px;width:1px">
        <div id="qunit-fixture">
                <p id="firstp">See <a id="simon1" href="http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector" rel="bookmark">this blog entry</a> for more information.</p>
                <p id="ap">
index d404faf8f587fcbe6b8907943022e6318dd51e0c..69925bca552c1e227a93102dcfba9c8596a2e8ce 160000 (submodule)
@@ -1 +1 @@
-Subproject commit d404faf8f587fcbe6b8907943022e6318dd51e0c
+Subproject commit 69925bca552c1e227a93102dcfba9c8596a2e8ce