FLUID-5239: Cannot reference a component by name if it has a segment starting with "source"

Metadata

Source
FLUID-5239
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Justin Obara
Created
2013-12-04T10:42:57.434-0500
Updated
2014-03-03T11:24:43.836-0500
Versions
N/A
Fixed Versions
  1. 1.5
Component
  1. Framework

Description

A component that has a name starting with "source" cannot be referenced through IoC by its name. Using "{that}" does still work. Although this won't allow the parent to be referenced from a subcomponent.

Example:

fluid.defaults("fluid.sourceSomeName", {
gradeNames: ["fluid.eventedComponent", "autoInit"],
listeners: {
"onCreate.pass": {
listener: "console.log",
args: ["{that}"] // outputs the component
},
"onCreate.fail": {
listener: "console.log",
args: ["{sourceSomeName}"] // outputs undefined
}

}
});

Comments