Slight performance & correctness improvement

This commit is contained in:
Sarah Gerweck 2016-04-16 17:21:04 -07:00
parent d19c9fee5e
commit d9ffc45d69

View File

@ -29,7 +29,7 @@ trait ObservableImplicits {
def changeHandler = prop.synchronized { def changeHandler = prop.synchronized {
val newVal = recalculate() val newVal = recalculate()
if (prevValue != newVal) { if (prevValue != newVal) {
prop.value = recalculate() prop.value = newVal
prevValue = newVal prevValue = newVal
} }
} }