Remove browser.document
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
@file:JvmVersion
|
||||
@file:JvmName("BrowserKt")
|
||||
package kotlin.browser
|
||||
|
||||
import org.w3c.dom.Document
|
||||
|
||||
private var _document: Document? = null
|
||||
|
||||
/**
|
||||
* Provides access to the current active browsers DOM for the currently visible page.
|
||||
*/
|
||||
public var document: Document
|
||||
get() {
|
||||
// Note this code is only executed on the JVM
|
||||
val answer = _document
|
||||
return if (answer == null) {
|
||||
kotlin.dom.createDocument()
|
||||
} else answer
|
||||
}
|
||||
set(value) {
|
||||
_document = value
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
## Browser API
|
||||
|
||||
Provides a simple typesafe API for accessing the browser context which can be used when Kotlin is compiled into JavaScript or when Kotlin is used on a JVM for example using [JavaFX](https://github.com/koolapp/koolapp/tree/master/koolapp-javafx), custom browser widgets such as in SWT or Qt, with remote control browser APIs like GWT or Selenium.
|
||||
Reference in New Issue
Block a user