This documentation refers to the current trunk of the Infusion code and is being updated to reflect ongoing changes. As a result, it may contain information that is not relevant to the latest release, 1.4. For documentation related to v1.4 and earlier, please see the Infusion v1.4 Documentation
Skip to end of metadata
Go to start of metadata
This functionality is Sneak Peek status. This means that the APIs may change. We welcome your feedback, ideas, and code, but please use caution if you use this new functionality.
This page is being drafted - some information is still missing.

fluid.invoke()

description

File name: FluidIoC.js

Parameters

functionName (String) The fully namespaced name of the function to invoke
args (Array) An array of arguments to be applied to the function specified in functionPath.
that (Object) description
environment (Object) (optional) A hash of root path segments to objects that can be used to override lookups to the global object. This would typically be used by the Fluid framework itself to direct lookups to the correct version of the root fluid object

Return Value

the return value of functionName

See Also


Example

In this example, fluid.invoke will resolve the value to use for the url option before calling cspace.util.getLoginURL:

  • In a production environment, the default ("%chain/loginstatus") will be resolved and used.
  • When the cspace.localData context is registered (for example, in a testing environment), the alternative specified in the demands block will be found, resolved and used.
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.