-
Notifications
You must be signed in to change notification settings - Fork 161
Implicit DOMTokenList to Seq (e.g. for Element.classList) support #371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implicit DOMTokenList to Seq (e.g. for Element.classList) support #371
Conversation
6732dfa
to
40d54fa
Compare
@@ -9,6 +9,9 @@ package object ext { | |||
implicit class PimpedNodeList(nodes: NodeList) | |||
extends EasySeq[Node](nodes.length, nodes.apply) | |||
|
|||
implicit class PimpedDOMTokenList(nodes: DOMTokenList) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about renaming Pimped~
classes into Enrich~
or such, in subsequent PRs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100% but let's perform this change on the upcoming 2.x release branch so we don't break compatibility
This PR exists since 2019, probably high time to resolve it somehow? |
So sorry for that, we are working on it! See https://users.scala-lang.org/t/scala-js-dom-to-become-more-active-2-x-coming-soon/7702 |
Can't wait when you release it for Scala 3 as well 🎉 Thanks. No worries, it is generally just a small inconvenience to copy my implicits from one project to another :) |
For 2.x, in #458, I made those things available by default for all |
This confirms that #371 is no longer needed.
Thanks for the PR (and your patience!) @abdolence . This is fixed on |
Probably it was accidentally forgotten and it will be convenient to have something like Element.classList.foreach or filter additionally to the others.
Don't you think?