Home Reference Source Repository
import Events from 'awv3-next/core/events.js'
public class | source

Events

Direct Subclass:

Plugin, base

Static Method Summary

Static Public Methods
public static

mixin(object: *, handlers: *)

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

bubble(type: *, args: ...*): *

public

emit(type: *, args: ...*): *

public

findListener(type: *): *

public

hasListener(type: *, callback: *): *

public

inspect(callback: *)

public

on(arg1: {}, arg2: *, remove: boolean): *

public

once(type: *, callback: *)

public
public

removeListener(types: *, callback: *): *

public

Static Public Methods

public static mixin(object: *, handlers: *) source

Params:

NameTypeAttributeDescription
object *
handlers *
  • optional
  • default: null

Public Constructors

public constructor source

Public Methods

public bubble(type: *, args: ...*): * source

Params:

NameTypeAttributeDescription
type *
args ...*

Return:

*

public emit(type: *, args: ...*): * source

Params:

NameTypeAttributeDescription
type *
args ...*

Return:

*

public findListener(type: *): * source

Params:

NameTypeAttributeDescription
type *

Return:

*

public hasListener(type: *, callback: *): * source

Params:

NameTypeAttributeDescription
type *
callback *
  • optional
  • default: undefined

Return:

*

public inspect(callback: *) source

Params:

NameTypeAttributeDescription
callback *

public on(arg1: {}, arg2: *, remove: boolean): * source

Params:

NameTypeAttributeDescription
arg1 {}
  • optional
  • default: {}
arg2 *
  • optional
  • default: undefined
remove boolean
  • optional
  • default: false

Return:

*

public once(type: *, callback: *) source

Params:

NameTypeAttributeDescription
type *
callback *

public removeInspectors() source

public removeListener(types: *, callback: *): * source

Params:

NameTypeAttributeDescription
types *
callback *

Return:

*

public removeListeners() source