Child pages
  • fluid.event.identifyListener

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.event.identifyListener(listener)

Returns the unique identifier of the given listener. If the listener has none, one will be added and returned.

fluid.event.identifyListener(listener);

File name: Fluid.js

Parameters

listener (Function) description

Return Value

integer The unique identifier allocated to this listener.


Notes

The guid of a listener can be used...

Example

fireSpec.guids[fluid.event.identifyListener(listener)] = record;
    ...

var guid = fluid.event.identifyListener(listener);
if (fireSpec.guids[guid]) {
    var rec = fireSpec.guids[guid];
    ...
}

In this example, the identifier of the listener is used to register a record of information about the listener. Later, the guid of a listener is used to check whether or not a record exists for the listener before action is taken using it.

  • No labels