FLUID-6373: Cannot resolve reference to {arguments} from "func" or "this" in listener/invoker records

Metadata

Source
FLUID-6373
Type
Bug
Priority
Major
Status
Open
Resolution
N/A
Assignee
Antranig Basman
Reporter
Antranig Basman
Created
2019-03-23T09:22:52.026-0400
Updated
2024-07-19T08:06:03.808-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Framework

Description

It's impossible for the target object of a listener or invoker record to be resolved from its arguments - e.g. definitions of the following kind

listeners: {
            reportIt: {
                "func": "{arguments}.0.destroy"
            }
        }

are not possible - also, one can't get around this by trying to use the "this-ist" syntax for binding on to "this": "{arguments}.0" . This is because these main referents are resolved statically using fluid.expandOptions at the time of instantiating the invoker/listener, rather than during argument resolution time when {arguments} is available.