JooseX.Attribute.Trigger double-call bug in node.js context
Closed this issue · 3 comments
When using the trigger:
feature of JooseX.Attribute in the context of a node.js script (v0.1.98), the function defined in a trigger is called twice instantly (instead of once) when a setter method is used.
It took me awhile to figure out that it was the trigger:
that was making the difference and not a bug in my code. Once I had narrowed it down, I implemented the same function as an after:
modifier and it was only called once (as expected).
This bug is not experienced in browser environments where trigger:
functions are defined, at least so far as I've tested.
Any sample snippets? This code works as expected for me (on node 0.1.96): http://gist.github.com/490275
A side note - a trigger will also be called when assigning values provided during instantiation: http://gist.github.com/490278
Seems this issue is already fixed, closing the issue