mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 19:34:54 -05:00
4
src/effects.js
vendored
4
src/effects.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user