FLUID-5012: IoCSS does not apply the gradeNames option onto the target component

Metadata

Source
FLUID-5012
Type
Improvement
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Cindy Li
Reporter
Cindy Li
Created
2013-05-07T14:03:25.267-0400
Updated
2014-03-03T11:56:49.141-0500
Versions
N/A
Fixed Versions
  1. 1.5
Component
  1. Framework

Description

The distributeOptions below expects all the user options are merged properly:

fluid.defaults("fluid.tests.uio", {
....
distributeOptions: {
source: "{that}.options.templateLoader",
exclusions: [],
target: "{that > templateLoader}.options"
}
});

However, the "gradeNames" option is not. In this code where an extra grade "fluid.tests.defaultTemplateLoader" is supplied,

var uio = fluid.tests.uio({
templateLoader: {
gradeNames: ["fluid.tests.defaultTemplateLoader"]
}
});

The new grade is not merged into the existing grade list.

The unit test for this issue is created @ https://github.com/cindyli/infusion/blob/FLUID-5010/src/webapp/tests/framework-tests/core/js/FluidIoCTests.js#L2437-2470

Comments

  • Antranig Basman commented 2013-05-24T23:11:11.290-0400

    Merged into trunk at revision e4ebd9