I have a test case in which a computed property is not getting updated when I would expect it to do so.
Here is a JSBin: http://emberjs.jsbin.com/hawa/30/edit
To reproduce the effect I am seeing change the weight of one of the models by entering a different number, say “30” in the input field and pressing enter. The weight and formattedWeight change as expected.
Now press the “Reset weights” button, which sets the weight of each item in the controller to 50.
The weights in the output are updated correctly, the formattedWeight of the item which was previously set manually is not updated.
I can work around this using an observer and manually setting the formattedWeight property when the weight property changes. I would however expect that the property is updated automatically, being dependent on the weight property.
Is this by design, or a bug?
Thanks in advance!