add note about event subscription
This commit is contained in:
@@ -31,6 +31,8 @@ class SampleController : Controller() {
|
|||||||
val height = SimpleIntegerProperty()
|
val height = SimpleIntegerProperty()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
// sample event subscription. this is not necessary, but would update the
|
||||||
|
// width and height labels every time a value in the funge is changed
|
||||||
bf.fungeChanged += { updateFungeLabels() }
|
bf.fungeChanged += { updateFungeLabels() }
|
||||||
|
|
||||||
updateFungeLabels()
|
updateFungeLabels()
|
||||||
|
|||||||
Reference in New Issue
Block a user