From d9ffc45d697dad60d8cea4c51e138e8669d59fc6 Mon Sep 17 00:00:00 2001 From: Sarah Gerweck Date: Sat, 16 Apr 2016 17:21:04 -0700 Subject: [PATCH] Slight performance & correctness improvement --- src/main/scala/org/gerweck/scalafx/util/observable.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/org/gerweck/scalafx/util/observable.scala b/src/main/scala/org/gerweck/scalafx/util/observable.scala index 955339a..63e3ded 100644 --- a/src/main/scala/org/gerweck/scalafx/util/observable.scala +++ b/src/main/scala/org/gerweck/scalafx/util/observable.scala @@ -29,7 +29,7 @@ trait ObservableImplicits { def changeHandler = prop.synchronized { val newVal = recalculate() if (prevValue != newVal) { - prop.value = recalculate() + prop.value = newVal prevValue = newVal } }