aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2014-03-24 12:36:15 -0400
committerRichard Gibson <richard.gibson@gmail.com>2014-03-24 12:36:15 -0400
commit8072d25e6f9c0bd761aaaf90658917b3623a65c9 (patch)
tree0b55834077371b881b04ec2eceaac6cf3be5a8d4
parente04c465b644b1f756155cf15af5fda0e63f585e3 (diff)
downloadjquery-8072d25e6f9c0bd761aaaf90658917b3623a65c9.tar.gz
jquery-8072d25e6f9c0bd761aaaf90658917b3623a65c9.zip
Effects: Fix inline element animations
Ref 80cf965e02e71dc1b11bf8c1b3d216b9ab4e99ac Ref #14848
-rw-r--r--src/effects.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects.js b/src/effects.js
index f6b6dbd77..223c8e549 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -116,7 +116,7 @@ function createTween( value, prop, animation ) {
function defaultPrefilter( elem, props, opts ) {
/* jshint validthis: true */
- var prop, value, toggle, tween, hooks, oldfire, display, dDisplay,
+ var prop, value, toggle, tween, hooks, oldfire, display,
anim = this,
orig = {},
style = elem.style,
@@ -166,7 +166,7 @@ function defaultPrefilter( elem, props, opts ) {
// inline-level elements accept inline-block;
// block-level elements need to be inline with layout
- if ( !support.inlineBlockNeedsLayout || dDisplay === "inline" ) {
+ if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) {
style.display = "inline-block";
} else {
style.zoom = 1;