Bug Tracker

Modify

Ticket #5867 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

hasClass() behaviour change

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

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')) {}

Change History

comment:1 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.