Skip to main content

Search and Top Navigation

#4396 closed bug (fixed)

Opened March 23, 2009 06:53PM UTC

Closed November 06, 2009 01:13AM UTC

animateClass does nothing if there are no styles changes

Reported by: mulhoon Owned by: scottgonzalez
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);

Attachments (0)
Change History (5)

Changed March 25, 2009 05:07PM UTC by scottgonzalez comment:1

component: ui.coreeffects.core

Changed April 08, 2009 01:20AM UTC by scottgonzalez comment:2

milestone: TBD1.8

Changed September 19, 2009 05:41PM UTC by scottgonzalez comment:3

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).

Changed November 06, 2009 01:03AM UTC by scottgonzalez comment:4

owner: → scott.gonzalez
status: newaccepted

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

Changed November 06, 2009 01:13AM UTC by scottgonzalez comment:5

resolution: → fixed
status: acceptedclosed

Fixed in r3410.