Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Pass array of classes to `.addClass()`, `removeClass()`, and `toggleClass()` #3532
Comments
|
For the most part, we're not looking to add signatures or new features to jQuery, but I don't hate this. It has parity with libraries like React and Angular. |
timmywil
added Needs review Feature
labels
Feb 6, 2017
|
Note that this can already be done by |
It's true but it's also uglier. :) I like this proposal because:
|
timmywil
removed the
Needs review
label
Feb 6, 2017
timmywil
self-assigned this
Feb 6, 2017
timmywil
added the
Attributes
label
Feb 13, 2017
timmywil
modified the milestone: 4.0.0, 3.2.0
Feb 13, 2017
timmywil
modified the milestone: 3.2.0, 3.3.0
Feb 27, 2017
niltoncsr
commented
Mar 30, 2017
|
I'd like to contribute and get this one! |
RUPOJS
commented
May 12, 2017
•
|
Hi @timmywil, is this already assigned to someone ? I want to take this up. |
Jacabola
commented
May 15, 2017
|
Hi @timmywil, I want to take this up. |
timmywil
added the
Blocker
label
Jun 19, 2017
|
Should this add support for arrays ( |
t-kelly
commented
Jun 19, 2017
|
Multiple arguments might conflict with |
|
Seems like |
|
@jbedard We've discussed it already (you were present :)), accepting positional parameters would require way more code and would align worse with the standard because of funkiness like |
|
That was a long time ago! That info should be put in this ticket for those wanting to pick it up... |
faisaliyk
commented
Jul 16, 2017
|
If no one has worked on it, can I take a stab at it? |
|
Anyone who would like to submit a PR for this, please feel free. Our contributing guidelines should answer any questions you might have about contributing to jQuery. Specifically, I suggest having a look at the Commits and PR guidelines and JS style guide. |
faisaliyk
commented
Jul 17, 2017
|
Working on it. |
t-kelly commentedFeb 6, 2017
•
edited
Description
It would be great if these examples:
could instead be written like: