Fix typo in kotlinx.dom docs
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -14,7 +14,7 @@ import kotlinx.dom.createElement as newCreateElement
|
||||
/**
|
||||
* Creates a new element with the specified [name].
|
||||
*
|
||||
* The element is initialized with the speicifed [init] function.
|
||||
* The element is initialized with the specified [init] function.
|
||||
*/
|
||||
@LowPriorityInOverloadResolution
|
||||
@Deprecated(
|
||||
@@ -26,7 +26,7 @@ public inline fun Document.createElement(name: String, noinline init: Element.()
|
||||
/**
|
||||
* Appends a newly created element with the specified [name] to this element.
|
||||
*
|
||||
* The element is initialized with the speicifed [init] function.
|
||||
* The element is initialized with the specified [init] function.
|
||||
*/
|
||||
@LowPriorityInOverloadResolution
|
||||
@Deprecated(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -10,14 +10,14 @@ import org.w3c.dom.*
|
||||
/**
|
||||
* Creates a new element with the specified [name].
|
||||
*
|
||||
* The element is initialized with the speicifed [init] function.
|
||||
* The element is initialized with the specified [init] function.
|
||||
*/
|
||||
public fun Document.createElement(name: String, init: Element.() -> Unit): Element = createElement(name).apply(init)
|
||||
|
||||
/**
|
||||
* Appends a newly created element with the specified [name] to this element.
|
||||
*
|
||||
* The element is initialized with the speicifed [init] function.
|
||||
* The element is initialized with the specified [init] function.
|
||||
*/
|
||||
public fun Element.appendElement(name: String, init: Element.() -> Unit): Element =
|
||||
ownerDocument!!.createElement(name, init).also { appendChild(it) }
|
||||
|
||||
Reference in New Issue
Block a user