[Laszlo-dev] LPP-5570 - Circular constraints break swf instantiation
André Bargull
a.bargull at intensis.de
Sat Apr 12 12:57:58 PDT 2008
I found out what's happening:
Arithmetics are a bit different in both runtimes:
DHTML: null / 100 = 0
SWF: null / 100 = NaN
So in swf, the slider's value gets set to "NaN", that's why it is
endless recursing as "NaN != NaN" always evaluates to true.
(Actually, when I type into the debugger in swf: "NaN != NaN" it
evaluates to "false", but if I use: "0/0 != 0/0", I get the right
result, therefore "true". Does anybody know what's happening here?)
More information about the Laszlo-dev
mailing list