Documentation for a historical release of Infusion: 1.4
Please view the Infusion Documentation site for the latest documentation, or the Infusion 1.3. Documentation for the previous release.
If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

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.

fluid.expect(name, members, target)

Checks an object for a list of members.

fluid.expect(name, members, target);

File name: RendererUtilities.js


name (String) A name for the component, to be used in any error message
members (Arrayable) A list of member names
target (Object) The object to examine

Return Value

None Throws an error if one of the listed members is not found in target.

See Also


var obj = {
    a: foo,
    b: bar
fluid.expect("My Test Object", ["a", "b", "c"], obj);

In this example, fluid.expect() will throw an error, with the string "My Test Object missing required parameter c."

  • No labels