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.5
- Component
-
- 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
-
Justin Obara commented
2013-12-04T10:48:30.340-0500 Submitted a pull request containing a unit test to demonstrate the issue https://github.com/fluid-project/infusion/pull/445
-
Colin Clark commented
2014-02-17T18:56:39.814-0500 Reviewed, tested (on FF, Safari, Chrome and IE on both Windows and Mac OS X), and pushed to master:
https://github.com/fluid-project/infusion/commit/b76917b51b44ecdbc53b0574d27f19a9423dead6