return this.animate( genFx("show", 3), speed, callback);
} else {
return this.animate( genFx("show", 3), speed, callback);
} else {
var old = jQuery.data(this[i], "olddisplay");
this[i].style.display = old || "";
var old = jQuery.data(this[i], "olddisplay");
this[i].style.display = old || "";
return this.animate( genFx("hide", 3), speed, callback);
} else {
return this.animate( genFx("hide", 3), speed, callback);
} else {
jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
}
}
// Set the display of the elements in a second loop
// to avoid the constant reflow
jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
}
}
// Set the display of the elements in a second loop
// to avoid the constant reflow
this._toggle.apply( this, arguments );
} else if ( fn == null || bool ) {
this._toggle.apply( this, arguments );
} else if ( fn == null || bool ) {
animate: function( prop, speed, easing, callback ) {
var optall = jQuery.speed(speed, easing, callback);
animate: function( prop, speed, easing, callback ) {
var optall = jQuery.speed(speed, easing, callback);
return this[ optall.queue === false ? "each" : "queue" ](function() {
var opt = jQuery.extend({}, optall), p,
hidden = this.nodeType === 1 && jQuery(this).is(":hidden"),
return this[ optall.queue === false ? "each" : "queue" ](function() {
var opt = jQuery.extend({}, optall), p,
hidden = this.nodeType === 1 && jQuery(this).is(":hidden"),
// go in reverse order so anything added to the queue during the loop is ignored
for ( var i = timers.length - 1; i >= 0; i-- ) {
if ( timers[i].elem === this ) {
// go in reverse order so anything added to the queue during the loop is ignored
for ( var i = timers.length - 1; i >= 0; i-- ) {
if ( timers[i].elem === this ) {
// Generate shortcuts for custom animations
jQuery.each({
slideDown: genFx("show", 1),
// Generate shortcuts for custom animations
jQuery.each({
slideDown: genFx("show", 1),
slideToggle: genFx("toggle", 1),
fadeIn: { opacity: "show" },
fadeOut: { opacity: "hide" }
slideToggle: genFx("toggle", 1),
fadeIn: { opacity: "show" },
fadeOut: { opacity: "hide" }
-}, function( name, props ){
- jQuery.fn[ name ] = function( speed, callback ){
+}, function( name, props ) {
+ jQuery.fn[ name ] = function( speed, callback ) {
// Start an animation from one number to another
custom: function( from, to, unit ) {
// Start an animation from one number to another
custom: function( from, to, unit ) {
- jQuery.expr.filters.animated = function(elem){
- return jQuery.grep(jQuery.timers, function(fn){
+ jQuery.expr.filters.animated = function( elem ) {
+ return jQuery.grep(jQuery.timers, function( fn ) {