robstoll
05/07/2018, 11:49 AMlateinit var fSelf: (Event) -> Unit
val f = { _: Event ->
document.querySelectorAll(".contextMenu").asList().forEach {
(it as HTMLElement).style.visibility = "hidden"
}
window.removeEventListener("click", fSelf)
}
fSelf = f
window.addEventListener("click", f)