Metadata
- Source
- FLUID-5969
- Type
- Bug
- Priority
- Major
- Status
- Open
- Resolution
- N/A
- Assignee
- Antranig Basman
- Reporter
- Antranig Basman
- Created
2016-09-22T22:47:38.812-0400 - Updated
2024-07-22T09:24:43.850-0400 - Versions
- N/A
- Fixed Versions
- N/A
- Component
-
- Model Transformation System
Description
The FLUID-5115 rewrite of the ChangeApplier system moved it along to what has been named the "holder" system - whereby the level of containment of the model is moved one level higher in the hierarachy. The container of the model, which is in practice always the owning component, is named the "holder" and the member named "model" can be arbitrary rebound, allowing a component's model to consist of primitive values or even undefined
.
However, the model transformation system was not updated in step. A TODO remains at this line which causes the target
to always be initialised to an object - https://github.com/fluid-project/infusion/blob/master/src/framework/core/js/ModelTransformation.js#L614 - this is causing problems in areas such as https://github.com/GPII/universal/pull/464/files where a dereference transform is returning {} rather than undefined
, causing the need for a spurious use of $.isEmptyObject()
to detect the return value.