FLUID-5117: Functions that use an expander as an argument have the expander itself in the resolved expander return

Metadata

Source
FLUID-5117
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Cindy Li
Created
2013-08-16T11:00:42.618-0400
Updated
2014-03-03T11:29:38.159-0500
Versions
N/A
Fixed Versions
  1. 1.5
Component
  1. Framework

Description

If a declarative listener or invoker uses an expander as one argument:

onCreate: {
listener: "fluid.tests.fluid5120.init",
args: ["{that}", {expander: {func: "{that}.getObject"}}]
}

And, the expander "getObject" returns an object:
{
"key1": "value1"
}

Once the expander is resolved, the output contains not only the expected object content but also the expander itself:
{
"expander": {
"func": {}
},
"key1": "value1"
}

A test case is create @ https://github.com/cindyli/infusion/blob/FLUID-5117/src/tests/framework-tests/core/js/FluidIoCTests.js#L3131-3163

Comments

  • Michelle D'Souza commented 2013-09-12T13:54:47.949-0400

    Merged into project repo at d9f59f76fa3e8afeaf671e7be14eb1deeca0eb7d