Class: Event

Guacamole.Event(typenon-null)

new Event(typenon-null)

An arbitrary event, emitted by a Guacamole.Event.Target. This object should normally serve as the base class for a different object that is more specific to the event type.
Parameters:
Name Type Description
type string The unique name of this event type.
Source:

Classes

DOMEvent
Target

Members

(non-null) timestamp :number

An arbitrary timestamp in milliseconds, indicating this event's position in time relative to other events.
Type:
  • number
Source:

(non-null) type :string

The unique name of this event type.
Type:
  • string
Source:

Methods

getAge() → (non-null) {number}

Returns the number of milliseconds elapsed since this event was created.
Source:
Returns:
The number of milliseconds elapsed since this event was created.
Type
number

invokeLegacyHandler(eventTargetnon-null)

Requests that the legacy event handler associated with this event be invoked on the given event target. This function will be invoked automatically by implementations of Guacamole.Event.Target whenever emit() is invoked.

Older versions of Guacamole relied on single event handlers with the prefix "on", such as "onmousedown" or "onkeyup". If a Guacamole.Event implementation is replacing the event previously represented by one of these handlers, this function gives the implementation the opportunity to provide backward compatibility with the old handler.

Unless overridden, this function does nothing.

Parameters:
Name Type Description
eventTarget Guacamole.Event.Target The Guacamole.Event.Target that emitted this event.
Source: