- From: Cyril Auburtin <notifications@github.com>
- Date: Tue, 09 Feb 2016 09:51:46 -0800
- To: whatwg/dom <dom@noreply.github.com>
Received on Tuesday, 9 February 2016 17:52:15 UTC
I find it useful if we had something like `element.classList.toggle('active', someBoolean)` that would do add the class if the boolean is true, and remove it otherwise. without the second argument it would be the current `.toggle(clsName)` function, where the boolean is `element.classList.contains(clsName)` actually --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/160
Received on Tuesday, 9 February 2016 17:52:15 UTC