Event Receiver Molecule

Enable droplet to recognize a custom DOM event.

Preference Dialog

Note: Once the event name is set, it cannot be changed dynamically at runtime.

Properties

type

string, ( r )

Type of this molecule, event_receiver.

pref.name

string, ( r )

Specifies the event name.

Functions

attach

attach(droplet);

Attach this molecule to the given droplet.

Parameters

droplet(object) a droplet.

Returns

N/A

detach

detach();

Remove this molecule from its droplet.

Parameters

N/A

Returns

N/A

delete

delete();

Delete this molecule.

Parameters

N/A

Returns

N/A

clone

clone();

Create a clone of this molecule.

Parameters

N/A

Returns

(object) a molecule.

serialize

serialize();

Serialize this molecule into its JSON representation.

Parameters

N/A

Returns

(string) JSON representation of a molecule.

Close