Migrate to using join* functions instead of deprecated.

This commit is contained in:
Ilya Ryzhenkov
2014-05-30 16:32:45 +04:00
committed by Andrey Breslav
parent 19858b9f74
commit f471f7901c
9 changed files with 42 additions and 32 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ get() = childNodes.outerHTML
* Returns the HTML representation of the nodes
*/
public val NodeList.outerHTML: String
get() = toList().map { it.innerHTML }.makeString("")
get() = toList().map { it.innerHTML }.join("")
/** Returns an [[Iterator]] of all the next [[Element]] siblings */
fun Node.nextElements(): List<Element> = nextSiblings().filterIsInstance<Node, Element>(javaClass<Element>())
@@ -130,7 +130,7 @@ get() {
return answer
}
set(value) {
this.classes = value.makeString(" ")
this.classes = value.join(" ")
}
/** Adds the given CSS class to this element's 'class' attribute */