Skip to content

Commit 769a85d

Browse files
committed
Implicit DOMTokenList to Seq (e.g. for Element.classList) support
1 parent 22f38bc commit 769a85d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/scala/org/scalajs/dom/ext/package.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ package object ext {
99
implicit class PimpedNodeList(nodes: NodeList)
1010
extends EasySeq[Node](nodes.length, nodes.apply)
1111

12+
implicit class PimpedDOMTokenList(nodes: DOMTokenList)
13+
extends EasySeq[String](nodes.length, nodes.apply)
14+
1215
implicit class PimpedTouchList(nodes: TouchList)
1316
extends EasySeq[Touch](nodes.length, nodes.apply)
1417

0 commit comments

Comments
 (0)