Skip to content

Commit f42f4e7

Browse files
authored
Merge pull request #47 from buntec/fix/attributes-module
fix bug in attributes module
2 parents 0392714 + 3ac158e commit f42f4e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This project started as a straightforward clone of [Snabbdom](https://github.com
44
Version 0.1.x stays close to the original, while 0.2.x departs from it in several ways, notably by making many things immutable.
55
We are happy to fix bugs in the 0.1.x line within reason.
66

7-
```
7+
```scala
88
libraryDependencies += "io.github.buntec" %%% "scala-js-snabbdom" % "x.y.z"
99
```
1010

snabbdom/src/main/scala/snabbdom/modules/Attributes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ object Attributes {
121121
} else if (key.length > 5 && key.charAt(5) == ':') {
122122
elm.setAttributeNS(xlinkNS, key, value)
123123
} else {
124-
elm.setAttribute(key, cur.toString)
124+
elm.setAttribute(key, value)
125125
}
126126
}
127127
}

0 commit comments

Comments
 (0)