Skip to content

removeClass(regExp) and hasClass(regExp)#212

Closed
NV wants to merge 1 commit intojquery:masterfrom
NV:regexp_classes
Closed

removeClass(regExp) and hasClass(regExp)#212
NV wants to merge 1 commit intojquery:masterfrom
NV:regexp_classes

Conversation

@NV
Copy link
Copy Markdown

@NV NV commented Jan 28, 2011

@rwaldron
Copy link
Copy Markdown
Member

I have some concerns regarding the performance of that nested for-loop.

Also, I think this could be achieved in less code.

@rwaldron
Copy link
Copy Markdown
Member

But overall - neat idea!

@rwaldron
Copy link
Copy Markdown
Member

Strike my "less code" statement - nice work.

@NV
Copy link
Copy Markdown
Author

NV commented Jan 29, 2011

I don't know how to avoid a nested loop in removeClass function. I'm open to suggestions.

@jitter
Copy link
Copy Markdown
Contributor

jitter commented Jan 29, 2011

As http://bugs.jquery.com/ticket/8088 was closed as wontfix I close this pull request too. Thanks for the effort.

Please report back on the ticket with a link, if you decide to release this as a plugin, because this sure is a cool feature. So we can people point at it if needs for something like that comes up.

@NV
Copy link
Copy Markdown
Author

NV commented Jan 29, 2011

I created jquery-regexp-classes repo that has jquery.hasClass.js and jquery.removeClass.js plugins.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants