jv
12/08/2017, 2:29 AMgildor
12/08/2017, 3:14 AMjv
12/08/2017, 4:52 AMjv
12/08/2017, 5:04 AMgbaldeck
12/08/2017, 2:05 PMfun ContextMenusNamespace.create(){ your code here...}
gbaldeck
12/08/2017, 2:07 PMopen
jv
12/11/2017, 6:09 AMexternal abstract class MyWindow : Window {
fun getSelection() : Node?
}
external val window: MyWindow
This works for me now. Cheers.gildor
12/11/2017, 6:14 AMfun Window.getSelection(): Node? = asDynamic().getSelection()
It’s even more clear. Because extend existing class make sense only if you want to instantiate that class yourself. Also, no problem with name clash between your window
and kotlin.browser.window
jv
12/11/2017, 4:54 PM