Side navigation
#8088 closed enhancement (wontfix)
Opened January 29, 2011 01:27AM UTC
Closed January 29, 2011 06:26AM UTC
Last modified February 02, 2011 02:47AM UTC
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
Attachments (0)
Change History (6)
Changed January 29, 2011 02:26AM UTC by comment:1
component: | unfiled → attributes |
---|---|
keywords: | → needsreview |
priority: | undecided → low |
status: | new → open |
Changed January 29, 2011 04:09AM UTC by comment:2
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.
Changed January 29, 2011 04:11AM UTC by comment:3
It's definitely cool, but I agree - feature creep. I'm not sure the amount of code it introduces is worthwhile for the core.
Changed January 29, 2011 05:30AM UTC by comment:4
+1 on making this a plugin instead
Changed January 29, 2011 06:26AM UTC by comment:5
keywords: | needsreview |
---|---|
resolution: | → wontfix |
status: | open → closed |
+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.
Changed February 02, 2011 02:47AM UTC by comment:6
For those interested in such functionality the reporter made a repo with this enhancement at https://github.com/NV/jquery-regexp-classes