adobe / twist

State-management library with data binding and observables
Apache License 2.0
23 stars 10 forks source link

bug fix: NaN observables #12

Closed lanther closed 6 years ago

lanther commented 6 years ago

What does this PR do?

observables shouldn't trigger a change if a NaN is changed to a NaN. Issue is that NaN !== NaN in JS, so need an additional check for this case.

Checklist