Bug Tracker

Opened 8 years ago

Closed 8 years ago

#9390 closed feature (wontfix)

Add swapClass Method

Reported by: rmanenti@… Owned by:
Priority: low Milestone: 1.7
Component: attributes Version: 1.6.1
Keywords: 1.7-discuss Cc:
Blocked by: Blocking:

Description (last modified by scottgonzalez)

Hello,

There were times when I needed a class swap, of couse it can be achieved by removing the current class and adding the new one, but a swap method native to jquery would be nice.

Something like $( 'div' ).swapClass( currentValue, newValue );

Anyway, keep the great work on JQuery. Thanks for developing it.

Ricardo Manenti

Change History (12)

comment:1 Changed 8 years ago by john

Type: bugfeature

comment:2 Changed 8 years ago by john

Keywords: 1.7-discuss added

Nominating ticket for 1.7 discussion.

comment:3 Changed 8 years ago by Rick Waldron

Description: modified (diff)

-1, A creative use of toggleClass is sufficient.

comment:4 Changed 8 years ago by jaubourg

-1,

comment:5 Changed 8 years ago by timmywil

-1, creep

comment:6 Changed 8 years ago by timmywil

Component: unfiledattributes
Description: modified (diff)
Priority: undecidedlow
Status: newopen

um, that wasn't me calling anyone names. creep = feature creep

comment:7 Changed 8 years ago by paul.irish

-1, toggleClass can do this

comment:8 Changed 8 years ago by dmethvin

-1, lol@timmywill, the creep

comment:9 Changed 8 years ago by john

Description: modified (diff)

-1, Plugin.

comment:10 Changed 8 years ago by ajpiano

Description: modified (diff)

-1, toggleClass, toggleClass, step right up and toggleClass...

comment:11 Changed 8 years ago by scottgonzalez

Description: modified (diff)

-1

comment:12 Changed 8 years ago by Rick Waldron

Milestone: 1.next1.7
Resolution: wontfix
Status: openclosed

Closing per 1.7 roadmap meeting resolution

Note: See TracTickets for help on using tickets.