Remove browser.document

This commit is contained in:
Sergey Mashkov
2015-10-26 18:47:57 +03:00
parent dce64c974f
commit 77d3db635b
2 changed files with 0 additions and 25 deletions
@@ -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.