I'm in the middle of updating my current application to 1.0pre from 0.9.8 and I'm experimenting something I can't understand very well.
One of my templates has a containerview bound to a property:
...
{{view Ember.ContainerView currentViewBinding="oTabPanelFrame"}}
...
And then I changed the container's view by code doing something like this (code executed by an observer):
...
if (sender[key])
this.set('oTabPanelFrame', sender.get('oFrameView'));
...
Since 1.0pre this works only one time, the second time it tries to set the view, its state changed to 'destroyed' (in 0.9.8 was always 'preRender') and then it's not shown anymore.
So, this is what happens:
- User clicks on an UI and it shows view A properly.
- User clicks on other UI item and it shows view B properly as well.
- User clicks on first UI item and it tries to show view A, but it doesn't. After diving into the view properties, I realized its state changed to 'destroyed'.
Is this a normal behavior?I've checked the 1.0pre changelog and different posts related to view states, but I can't see anything similar.
Thanks in advance!
P.S.: I think code is not relevant here, if you want me to publish more code let me know.