Safely attempts to invoke the onTriggered event.
Kind: Instance method of MenuSelectionListener
| Param | Type | Description |
|---|---|---|
| trigger | TriggerSource |
Indicates the source from where the item was triggered |
MenuSelectionListenerSet the onTriggered function.
Kind: Instance method of MenuSelectionListener
Returns: MenuSelectionListener - A reference to this instance to allow method chaining.
| Param | Type | Description |
|---|---|---|
| listener | function |
A function to be invoked when the event occurs. |