Opened 9 years ago

Closed 8 years ago

#4396 closed bug (fixed)

animateClass does nothing if there are no styles changes

Reported by: mulhoon Owned by: Scott González
Priority: major Milestone: 1.8
Component: ui.effects.core Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

three styles...

.content_1{color:#FFFFFF;} .content_2{color:#FF0000;} .content_3{color:#FFFFFF;}

Two of these classes have the same attributes which seems to be a problem. When swapping from content_1 to content_2 then content_3, then back to content_1. The final content_1 is not added it sticks on content_3 from then on.

But if I change it to this..

.content_1{color:#FFFFFF;} .content_2{color:#FF0000;} .content_3{color:#FF00FF;}

...everything is fine.

using this $("#content").switchClass('content_1','content_2', 1000);

Change History (5)

comment:1 Changed 9 years ago by Scott González

Component: ui.coreeffects.core

comment:2 Changed 8 years ago by Scott González

Milestone: TBD1.8

comment:3 Changed 8 years ago by Scott González

Priority: minormajor
Summary: switchClass to similar classes causes unexpected resultsanimateClass does nothing if there are no styles changes

I believe what happens if there are no properties to pass to .animate() so nothing happens (the classes don't even change).

comment:4 Changed 8 years ago by Scott González

Owner: set to scott.gonzalez
Status: newaccepted

Confirmed to be caused by passing an empty hash of properties to .animate(). Filed a ticket against jQuery.

comment:5 Changed 8 years ago by Scott González

Resolution: fixed
Status: acceptedclosed

Fixed in r3410.

Note: See TracTickets for help on using tickets.