Skip to main content

Bug Tracker

Side navigation

#5867 closed bug (invalid)

Opened January 19, 2010 04:18PM UTC

Closed November 19, 2010 05:47AM UTC

hasClass() behaviour change

Reported by: valugi Owned by: john
Priority: minor Milestone: 1.4.1
Component: selector Version: 1.4
Keywords: traversing, hasClass Cc:
Blocked by: Blocking:
Description

I updated my application to 1.4 from 1.3.2 and this stops working.

1.3.2 version this was an logical OR.

if (el.hasClass('.seq_up_active, .seq_down_active')) {}

in 1.4 this is not working anymore and I have to use

if (el.hasClass('seq_up_active') || el.hasClass('seq_down_active')) {}

Attachments (0)
Change History (1)

Changed November 19, 2010 05:47AM UTC by snover comment:1

resolution: → invalid
status: newclosed

Thanks for the report, but this is not a jQuery bug. If you want to test multiple class selectors, use $.fn.is.