Skip to content

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

Conversation

abdolence
Copy link

@abdolence abdolence commented Jun 22, 2019

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?

@armanbilge armanbilge force-pushed the domtokenlist-implicit-conversation branch from 6732dfa to 40d54fa Compare August 10, 2021 01:32
@armanbilge armanbilge changed the base branch from master to series/1.x August 10, 2021 01:32
@@ -9,6 +9,9 @@ package object ext {
implicit class PimpedNodeList(nodes: NodeList)
extends EasySeq[Node](nodes.length, nodes.apply)

implicit class PimpedDOMTokenList(nodes: DOMTokenList)
Copy link
Contributor

@exoego exoego Aug 8, 2021

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?

Copy link
Contributor

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

@abdolence
Copy link
Author

This PR exists since 2019, probably high time to resolve it somehow?
Just saying :)

@armanbilge
Copy link
Member

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

@abdolence
Copy link
Author

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 :)

@sjrd
Copy link
Member

sjrd commented Aug 10, 2021

For 2.x, in #458, I made those things available by default for all DOMLists.

@japgolly japgolly marked this pull request as draft August 12, 2021 23:54
@japgolly japgolly modified the milestones: v1.2.0, v2.0.0 Aug 13, 2021
japgolly added a commit that referenced this pull request Sep 4, 2021
This confirms that #371 is no longer needed.
@japgolly
Copy link
Contributor

japgolly commented Sep 4, 2021

Thanks for the PR (and your patience!) @abdolence . This is fixed on master by #458 and verified by #546

@japgolly japgolly closed this Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants