FLUID-4585: Framework not merging multi-level models properly

Metadata

Source
FLUID-4585
Type
Bug
Priority
Critical
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Anastasia Cheetham
Created
2012-01-30T16:43:16.102-0500
Updated
2014-03-03T11:50:45.558-0500
Versions
N/A
Fixed Versions
N/A
Component
  1. Framework

Description

The new fluid.model.mergeModel() function in Fluid.js doesn't seem to be merging models correctly when the model has more than one 'level' to it, e.g.
model: {
inner: {
something: "else"
}
}
Rather than merging, the inner object is replacing the defaults.

Comments

  • Anastasia Cheetham commented 2012-01-30T16:44:42.197-0500

    The attached file (FLUID-4585-test.patch.txt) provides a test illustrating the problem. I haven't yet worked on a fix.

  • Michelle D'Souza commented 2012-02-02T10:51:45.097-0500

    Merged into project repo at 7b27d42f914d716ac281e5591abc1071de99cc07