Slight performance & correctness improvement
This commit is contained in:
parent
d19c9fee5e
commit
d9ffc45d69
@ -29,7 +29,7 @@ trait ObservableImplicits {
|
||||
def changeHandler = prop.synchronized {
|
||||
val newVal = recalculate()
|
||||
if (prevValue != newVal) {
|
||||
prop.value = recalculate()
|
||||
prop.value = newVal
|
||||
prevValue = newVal
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user