Bug Tracker

Opened 12 years ago

Closed 12 years ago

#6914 closed bug (worksforme)

addClass duplication bug in 1.4.2

Reported by: twophayse Owned by:
Priority: Milestone: 1.4.2
Component: manipulation Version: 1.4.2
Keywords: addClass Cc:
Blocked by: Blocking:


In 1.4.2, foo.addClass("disabled");

adds disabled even if it already exists. As a result, the DOM element becomes

<span class="disabled disabled">

and foo.removeClass("disabled")

needs to be run more multiple times.

This is not an issue in 1.3.2.

Attachments (1)

test-6914.html (561 bytes) - added by dmethvin 12 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 12 years ago by dmethvin

Resolution: worksforme
Status: newclosed

I thought, "This can't be broken, since addClass is used everywhere. But then again, maybe we missed something obvious. That twophayse guy must have done his homework, so I'll look into it."

So I spent 5 minutes of my time creating a test case. And it works fine.

Changed 12 years ago by dmethvin

Attachment: test-6914.html added
Note: See TracTickets for help on using tickets.