Ruckus
06/26/2018, 3:51 PMnwh
06/26/2018, 3:52 PMrunAsync
do I have to use success
if I want to change the UI elements?Ruckus
06/26/2018, 3:53 PMorangy
nwh
06/26/2018, 3:54 PMorangy
val evalProperty = scriptProperty.debounce(100.millis) { evalScript(it!!) }
Ruckus
06/26/2018, 3:57 PMiLobanov
06/26/2018, 3:58 PMcarlw
06/26/2018, 4:02 PMcarlw
06/26/2018, 4:04 PMiLobanov
06/26/2018, 4:05 PMorangy
carlw
06/26/2018, 4:08 PMRuckus
06/26/2018, 4:08 PMPauseTransition
only runs when the user is editing, and only updates after the user has paused for <duration>.carlw
06/26/2018, 4:09 PMamanda.hinchman-dominguez
06/26/2018, 4:09 PMPauseTransition
, wish I knew this way earlieramanda.hinchman-dominguez
06/26/2018, 4:10 PMRuckus
06/26/2018, 4:12 PMamanda.hinchman-dominguez
06/26/2018, 4:13 PMorangy
onChange
but that would call lambda on initial subscription?abhinay
06/26/2018, 5:54 PMonChange
to be called just once?orangy
orangy
fun <T> ObservableValue<T?>.attach(handler: (T?) -> Unit) {
handler(value)
addListener { _, _, newValue -> handler(newValue) }
}
abhinay
06/26/2018, 5:57 PMamanda.hinchman-dominguez
06/26/2018, 5:57 PMRuckus
06/26/2018, 5:58 PMamanda.hinchman-dominguez
06/26/2018, 5:59 PMcarlw
06/26/2018, 6:06 PMcarlw
06/26/2018, 6:06 PMorangy
populate
gets childFactory: (TreeItem<T>) -> Iterable<T>?
and not childFactory: (T) -> Iterable<T>?
as a parameter? Shouldn’t it operate entirely in a business domain, and use itemFactory
to map to the tree?