aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-04-17 14:12:31 -0400
committertimmywil <tim.willison@thisismedium.com>2011-04-17 14:12:31 -0400
commit3aa46725edd73d3b6099ffdf1c1775ee54315845 (patch)
tree13af604a22d2042297883715fc9dac19966b9a92 /src/effects.js
parent21c0be8496127df3f0ad652e582133148430cc41 (diff)
parent68cc3ad730c864afb653971b1353bf5160116c08 (diff)
downloadjquery-3aa46725edd73d3b6099ffdf1c1775ee54315845.tar.gz
jquery-3aa46725edd73d3b6099ffdf1c1775ee54315845.zip
Merge branch 'qunit_fixture'
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/effects.js b/src/effects.js
index 162de1266..d002d6d11 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -173,7 +173,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
@@ -274,6 +274,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),
@@ -589,25 +610,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 );