()
| 8402 | prop = jQuery.extend( {}, prop ); |
| 8403 | |
| 8404 | function doAnimation() { |
| 8405 | // XXX 'this' does not always have a nodeName when running the |
| 8406 | // test suite |
| 8407 | |
| 8408 | if ( optall.queue === false ) { |
| 8409 | jQuery._mark( this ); |
| 8410 | } |
| 8411 | |
| 8412 | var opt = jQuery.extend( {}, optall ), |
| 8413 | isElement = this.nodeType === 1, |
| 8414 | hidden = isElement && jQuery(this).is(":hidden"), |
| 8415 | name, val, p, e, |
| 8416 | parts, start, end, unit, |
| 8417 | method; |
| 8418 | |
| 8419 | // will store per property easing and be used to determine when an animation is complete |
| 8420 | opt.animatedProperties = {}; |
| 8421 | |
| 8422 | for ( p in prop ) { |
| 8423 | |
| 8424 | // property name normalization |
| 8425 | name = jQuery.camelCase( p ); |
| 8426 | if ( p !== name ) { |
| 8427 | prop[ name ] = prop[ p ]; |
| 8428 | delete prop[ p ]; |
| 8429 | } |
| 8430 | |
| 8431 | val = prop[ name ]; |
| 8432 | |
| 8433 | // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default) |
| 8434 | if ( jQuery.isArray( val ) ) { |
| 8435 | opt.animatedProperties[ name ] = val[ 1 ]; |
| 8436 | val = prop[ name ] = val[ 0 ]; |
| 8437 | } else { |
| 8438 | opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing'; |
| 8439 | } |
| 8440 | |
| 8441 | if ( val === "hide" && hidden || val === "show" && !hidden ) { |
| 8442 | return opt.complete.call( this ); |
| 8443 | } |
| 8444 | |
| 8445 | if ( isElement && ( name === "height" || name === "width" ) ) { |
| 8446 | // Make sure that nothing sneaks out |
| 8447 | // Record all 3 overflow attributes because IE does not |
| 8448 | // change the overflow attribute when overflowX and |
| 8449 | // overflowY are set to the same value |
| 8450 | opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ]; |
| 8451 | |
| 8452 | // Set display property to inline-block for height/width |
| 8453 | // animations on inline elements that are having width/height animated |
| 8454 | if ( jQuery.css( this, "display" ) === "inline" && |
| 8455 | jQuery.css( this, "float" ) === "none" ) { |
| 8456 | |
| 8457 | // inline-level elements accept inline-block; |
| 8458 | // block-level elements need to be inline with layout |
| 8459 | if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) { |
| 8460 | this.style.display = "inline-block"; |
| 8461 |
nothing calls this directly
no test coverage detected