Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8088 closed enhancement (wontfix)

removeClass(regExp) and hasClass(regExp)

Reported by: NV Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: git
Keywords: Cc:
Blocked by: Blocking:

Description

Usage: $("<div class='icon-32 icon-loading disabled'/>").removeClass(/icon-/);

https://github.com/jquery/jquery/pull/212

I posted a proposal on the forum but didn't get any feedback so far. http://forum.jquery.com/topic/removeclass-regexp-and-hasclass-regexp

Change History (6)

comment:1 Changed 12 years ago by Rick Waldron

Component: unfiledattributes
Keywords: needsreview added
Priority: undecidedlow
Status: newopen

comment:2 Changed 12 years ago by jitter

Sounds like feature creep to me.

This is probably better suited as a plugin as it can be easily monkey patched onto the methods in question.

comment:3 Changed 12 years ago by Rick Waldron

It's definitely cool, but I agree - feature creep. I'm not sure the amount of code it introduces is worthwhile for the core.

comment:4 Changed 12 years ago by danheberden

+1 on making this a plugin instead

comment:5 Changed 12 years ago by addyosmani

Keywords: needsreview removed
Resolution: wontfix
Status: openclosed

+1. With three prior agreements on this being better suited as a plugin, I'm closing ticket this due to feature creep. Please feel free to turn this into a plugin instead.

comment:6 Changed 12 years ago by jitter

For those interested in such functionality the reporter made a repo with this enhancement at https://github.com/NV/jquery-regexp-classes

Note: See TracTickets for help on using tickets.