From 53ca61ea46012249c3889af3011b278dd09382c1 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 5 Nov 2018 10:34:12 -0500 Subject: [PATCH] add note about event subscription --- ide/src/main/kotlin/befide/ide/Sample.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ide/src/main/kotlin/befide/ide/Sample.kt b/ide/src/main/kotlin/befide/ide/Sample.kt index eb66c91..a482529 100644 --- a/ide/src/main/kotlin/befide/ide/Sample.kt +++ b/ide/src/main/kotlin/befide/ide/Sample.kt @@ -31,6 +31,8 @@ class SampleController : Controller() { val height = SimpleIntegerProperty() 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() } updateFungeLabels()