If you pass multiple references to functions into a method on the now object, nowjs gets confused. It does not reliably (or at all) call back the correct function. I have created a trivial example that can be downloaded here. In your terminal, you can cd to the directory, and then type ./run. Alternatively, you can do node bug1.js.
Using nowjs 0.5.1, I get:
expected output:
first
second
third
actual output
(3) third
If you pass multiple references to functions into a method on the now object, nowjs gets confused. It does not reliably (or at all) call back the correct function. I have created a trivial example that can be downloaded here. In your terminal, you can
cd
to the directory, and then type./run
. Alternatively, you can donode bug1.js
.Using nowjs 0.5.1, I get: