btw the Observable.onChange function does the opposite. it does not replace, but add a handler/listener. thats not consistent for me.
g
gtnarg
02/18/2018, 4:56 PM
you are correct - the distinction is that it is javafx which is inconsistent in this regard and TornadoFx is really just a wrapper around JavaFx and should be consistent with JavaFx semantics as much as possible
r
Ruckus
02/18/2018, 5:01 PM
Not really, JavaFX refers to then as addListener and setListener, which makes sense. It's the shortened versions in TornadoFX that seem inconsistent.