https://kotlinlang.org logo
b

bj0

08/28/2018, 10:29 PM
@carlw the more I think about it, it seems like
bindClass
should probably store a reference somewhere to prevent garbage collection. this would make it work the same way as other binding calls in the DSL:
Copy code
text(vm.isActiveProperty.stringBinding { (it == true) "Stop" else "Start" })
the dynamically created binding stays alive in this case