( elem, props, opts )
| 9535 | }); |
| 9536 | |
| 9537 | function defaultPrefilter( elem, props, opts ) { |
| 9538 | var index, prop, value, length, dataShow, tween, hooks, oldfire, |
| 9539 | anim = this, |
| 9540 | style = elem.style, |
| 9541 | orig = {}, |
| 9542 | handled = [], |
| 9543 | hidden = elem.nodeType && isHidden( elem ); |
| 9544 | |
| 9545 | // handle queue: false promises |
| 9546 | if ( !opts.queue ) { |
| 9547 | hooks = jQuery._queueHooks( elem, "fx" ); |
| 9548 | if ( hooks.unqueued == null ) { |
| 9549 | hooks.unqueued = 0; |
| 9550 | oldfire = hooks.empty.fire; |
| 9551 | hooks.empty.fire = function() { |
| 9552 | if ( !hooks.unqueued ) { |
| 9553 | oldfire(); |
| 9554 | } |
| 9555 | }; |
| 9556 | } |
| 9557 | hooks.unqueued++; |
| 9558 | |
| 9559 | anim.always(function() { |
| 9560 | // doing this makes sure that the complete handler will be called |
| 9561 | // before this completes |
| 9562 | anim.always(function() { |
| 9563 | hooks.unqueued--; |
| 9564 | if ( !jQuery.queue( elem, "fx" ).length ) { |
| 9565 | hooks.empty.fire(); |
| 9566 | } |
| 9567 | }); |
| 9568 | }); |
| 9569 | } |
| 9570 | |
| 9571 | // height/width overflow pass |
| 9572 | if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) { |
| 9573 | // Make sure that nothing sneaks out |
| 9574 | // Record all 3 overflow attributes because IE does not |
| 9575 | // change the overflow attribute when overflowX and |
| 9576 | // overflowY are set to the same value |
| 9577 | opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; |
| 9578 | |
| 9579 | // Set display property to inline-block for height/width |
| 9580 | // animations on inline elements that are having width/height animated |
| 9581 | if ( jQuery.css( elem, "display" ) === "inline" && |
| 9582 | jQuery.css( elem, "float" ) === "none" ) { |
| 9583 | |
| 9584 | // inline-level elements accept inline-block; |
| 9585 | // block-level elements need to be inline with layout |
| 9586 | if ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === "inline" ) { |
| 9587 | style.display = "inline-block"; |
| 9588 | |
| 9589 | } else { |
| 9590 | style.zoom = 1; |
| 9591 | } |
| 9592 | } |
| 9593 | } |
| 9594 |
nothing calls this directly
no test coverage detected
searching dependent graphs…