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.isMarker(toTest, type)

Determine whether an object is any marker, or a particular marker - omit the 2nd argument to detect any marker.

fluid.isMarker(toTest, type);

File name: Fluid.js

Parameters

toTest (Object) The object to evaluation
type (String) (optional) The type of marker to check for.

Return Value

Boolean


Example

if (fluid.isMarker(arg, fluid.COMPONENT_OPTIONS)) {
    ...
}

In this example, arg is examined to determine whether or not it is the special fluid.COMPONENT_OPTIONS marker before proceeding to carry out some action.

  • No labels