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

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.

Environment

None

Activity

Details

Assignee

Reporter

Components

Priority

Created March 23, 2019 at 1:22 PM
Updated July 19, 2024 at 12:06 PM

Flag notifications