Class: EventedHandle

barejs.Evented~EventedHandle()

EventedHandle is the handle returned by Evented::on and Evented::once.

Constructor

new EventedHandle()

Create a new EventedHandle.

Source:

Methods

attach() → {boolean}

Attach the handle. A handle is attached by default, this method should only be used after the handle has been detached using remove.

Source:
Returns:

True if the handle is attached.

Type
boolean

destroy()

Destroy the handle.

Source:

isAttached() → {boolean}

Check if the handle is attached.

Source:
Returns:

True if the handle is attached.

Type
boolean

remove() → {boolean}

Remove the handle. A removed handle can be re-attached using attach.

Source:
Returns:

True if the handle got detached.

Type
boolean