Slight performance & correctness improvement
This commit is contained in:
parent
d19c9fee5e
commit
d9ffc45d69
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user