After further investigation and discussion, this seems to be the problem:
- focusWindow changes after the components are completed.
- change of focusWindow registers a new 'window' context property.
- registering a new context property, causes a re-evaluation of properties in the context.
So the properties of variables are set twice, once before the focus window is set, and once afterwards. This gives problems, for example, in the Sections where the index is reset when its model is changed after the Sections component was completed, thus overriding the index property that was explicitly set by the app developer.
After further investigation and discussion, this seems to be the problem:
- focusWindow changes after the components are completed.
- change of focusWindow registers a new 'window' context property.
- registering a new context property, causes a re-evaluation of properties in the context.
So the properties of variables are set twice, once before the focus window is set, and once afterwards. This gives problems, for example, in the Sections where the index is reset when its model is changed after the Sections component was completed, thus overriding the index property that was explicitly set by the app developer.