#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
Component: | unfiled → attributes |
---|---|
Keywords: | needsreview added |
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
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:5 Changed 12 years ago by
Keywords: | needsreview removed |
---|---|
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.
comment:6 Changed 12 years ago by
For those interested in such functionality the reporter made a repo with this enhancement at https://github.com/NV/jquery-regexp-classes
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.