From 68cc3ad730c864afb653971b1353bf5160116c08 Mon Sep 17 00:00:00 2001 From: timmywil Date: Sun, 17 Apr 2011 14:08:52 -0400 Subject: [PATCH] Update QUnit, fix visibility of #dl and pass JSLint in effects.js --- src/effects.js | 44 ++++++++++++++++++++++---------------------- test/index.html | 2 +- test/qunit | 2 +- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/effects.js b/src/effects.js index 2c7b44cb0..7e693d8d1 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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 ); diff --git a/test/index.html b/test/index.html index 625562722..b19673d99 100644 --- a/test/index.html +++ b/test/index.html @@ -60,7 +60,7 @@ -
+

See this blog entry for more information.

diff --git a/test/qunit b/test/qunit index d404faf8f..69925bca5 160000 --- a/test/qunit +++ b/test/qunit @@ -1 +1 @@ -Subproject commit d404faf8f587fcbe6b8907943022e6318dd51e0c +Subproject commit 69925bca552c1e227a93102dcfba9c8596a2e8ce -- 2.39.5