@@ 7890-7921 (lines=32) @@ | ||
7887 | } |
|
7888 | } ); |
|
7889 | ||
7890 | jQuery.speed = function( speed, easing, fn ) { |
|
7891 | var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { |
|
7892 | complete: fn || !fn && easing || |
|
7893 | jQuery.isFunction( speed ) && speed, |
|
7894 | duration: speed, |
|
7895 | easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing |
|
7896 | }; |
|
7897 | ||
7898 | opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : |
|
7899 | opt.duration in jQuery.fx.speeds ? |
|
7900 | jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default; |
|
7901 | ||
7902 | // normalize opt.queue - true/undefined/null -> "fx" |
|
7903 | if ( opt.queue == null || opt.queue === true ) { |
|
7904 | opt.queue = "fx"; |
|
7905 | } |
|
7906 | ||
7907 | // Queueing |
|
7908 | opt.old = opt.complete; |
|
7909 | ||
7910 | opt.complete = function() { |
|
7911 | if ( jQuery.isFunction( opt.old ) ) { |
|
7912 | opt.old.call( this ); |
|
7913 | } |
|
7914 | ||
7915 | if ( opt.queue ) { |
|
7916 | jQuery.dequeue( this, opt.queue ); |
|
7917 | } |
|
7918 | }; |
|
7919 | ||
7920 | return opt; |
|
7921 | }; |
|
7922 | ||
7923 | jQuery.fn.extend( { |
|
7924 | fadeTo: function( speed, to, easing, callback ) { |
@@ 6841-6872 (lines=32) @@ | ||
6838 | } |
|
6839 | } ); |
|
6840 | ||
6841 | jQuery.speed = function( speed, easing, fn ) { |
|
6842 | var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { |
|
6843 | complete: fn || !fn && easing || |
|
6844 | jQuery.isFunction( speed ) && speed, |
|
6845 | duration: speed, |
|
6846 | easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing |
|
6847 | }; |
|
6848 | ||
6849 | opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? |
|
6850 | opt.duration : opt.duration in jQuery.fx.speeds ? |
|
6851 | jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default; |
|
6852 | ||
6853 | // Normalize opt.queue - true/undefined/null -> "fx" |
|
6854 | if ( opt.queue == null || opt.queue === true ) { |
|
6855 | opt.queue = "fx"; |
|
6856 | } |
|
6857 | ||
6858 | // Queueing |
|
6859 | opt.old = opt.complete; |
|
6860 | ||
6861 | opt.complete = function() { |
|
6862 | if ( jQuery.isFunction( opt.old ) ) { |
|
6863 | opt.old.call( this ); |
|
6864 | } |
|
6865 | ||
6866 | if ( opt.queue ) { |
|
6867 | jQuery.dequeue( this, opt.queue ); |
|
6868 | } |
|
6869 | }; |
|
6870 | ||
6871 | return opt; |
|
6872 | }; |
|
6873 | ||
6874 | jQuery.fn.extend( { |
|
6875 | fadeTo: function( speed, to, easing, callback ) { |
@@ 6640-6670 (lines=31) @@ | ||
6637 | } |
|
6638 | }); |
|
6639 | ||
6640 | jQuery.speed = function( speed, easing, fn ) { |
|
6641 | var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { |
|
6642 | complete: fn || !fn && easing || |
|
6643 | jQuery.isFunction( speed ) && speed, |
|
6644 | duration: speed, |
|
6645 | easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing |
|
6646 | }; |
|
6647 | ||
6648 | opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : |
|
6649 | opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default; |
|
6650 | ||
6651 | // normalize opt.queue - true/undefined/null -> "fx" |
|
6652 | if ( opt.queue == null || opt.queue === true ) { |
|
6653 | opt.queue = "fx"; |
|
6654 | } |
|
6655 | ||
6656 | // Queueing |
|
6657 | opt.old = opt.complete; |
|
6658 | ||
6659 | opt.complete = function() { |
|
6660 | if ( jQuery.isFunction( opt.old ) ) { |
|
6661 | opt.old.call( this ); |
|
6662 | } |
|
6663 | ||
6664 | if ( opt.queue ) { |
|
6665 | jQuery.dequeue( this, opt.queue ); |
|
6666 | } |
|
6667 | }; |
|
6668 | ||
6669 | return opt; |
|
6670 | }; |
|
6671 | ||
6672 | jQuery.fn.extend({ |
|
6673 | fadeTo: function( speed, to, easing, callback ) { |