outr / reactify

The first and only true Functional Reactive Programming framework for Scala.
MIT License
86 stars 4 forks source link

Weird binding problem in scalajs! #26

Closed scalway closed 4 years ago

scalway commented 6 years ago

sometimes binding.detach() does not work.

example: https://scalafiddle.io/sf/BR0hHAZ/2

darkfrog26 commented 6 years ago

I'm unable to determine what is not working right. I created a test case: https://github.com/outr/reactify/blob/master/shared/src/test/scala/test/BindingSpec.scala#L87

Everything appears to be working fine.

scalway commented 6 years ago

yes... i've messed up this scalafiddle. It was not clear what happend. Here is simpler example. https://scalafiddle.io/sf/ppKwo7c/3

darkfrog26 commented 6 years ago

Ah, I see. I'll try to investigate further when I have a few minutes. It looks to be a browser issue. I would bet it has something to do with object equality since it doesn't seem to happen in NodeJS or JVM.

scalway commented 6 years ago

It seams to be much more subtle than i though. Thanks.