All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin.browser.Properties.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0-Beta1
Show newest version
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
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy