avoid unnecessary verbose type parameters now the type inferencer is better

This commit is contained in:
James Strachan
2012-08-17 09:44:52 +01:00
parent a4e80c7d5d
commit ecbd4daefb
10 changed files with 14 additions and 32 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ get() = childNodes.outerHTML
* Returns the HTML representation of the nodes
*/
public val NodeList.outerHTML: String
get() = toList().map<Node, String> { it.innerHTML }.makeString("")
get() = toList().map { it.innerHTML }.makeString("")
/** Returns an [[Iterator]] of all the next [[Element]] siblings */
fun Node.nextElements(): Iterator<Element> = nextSiblings().filterIsInstance<Node, Element>(javaClass<Element>())