Bug Tracker

Opened 11 years ago

Closed 11 years ago

#1284 closed bug (worksforme)

FF: animate() don't work

Reported by: adrian_wrobel Owned by:
Priority: major Milestone: 1.1.4
Component: effects Version: 1.1.3
Keywords: animate Cc:
Blocked by: Blocking:

Description

The animation don't work again if something was already shown or hidden in Firefox (2.0.4).

the fix for this is to change animation part in fx.js like this:

animate: function( prop, speed, easing, callback ) {

var hidden = jQuery(this).is(":hidden"); for ( var p in prop ) {

if ( prop[p] == "hide" && hidden
prop[p] == "show" && !hidden ) return;

};

return this.queue(function(){

this.curAnim = jQuery.extend({}, prop); var opt = jQuery.speed(speed, easing, callback); var self = this;

jQuery.each( prop, function(name, val){

var e = new jQuery.fx( self, opt, name ); if ( val.constructor == Number )

e.custom( e.cur(), val );

else

e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );

});

});

},

Change History (1)

comment:1 Changed 11 years ago by john

Milestone: 1.1.31.1.4
Resolution: worksforme
Status: newclosed
Version: 1.1.21.1.3

This was resolved in jQuery 1.1.3.

Note: See TracTickets for help on using tickets.