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

Events

Direct Subclass:

Defaults, base

Static Method Summary

Static Public Methods
public static

mixin(object: *, handlers: undefined)

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, priority: *): *

public

onFirst(type: *, callback: *)

public

onLast(type: *, callback: *)

public

once(type: *, callback: *)

public
public

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

public

Static Public Methods

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

Params:

NameTypeAttributeDescription
object *
handlers undefined
  • optional
  • default: undefined

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, priority: *): * source

Params:

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

Return:

*

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

Params:

NameTypeAttributeDescription
type *
callback *

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

Params:

NameTypeAttributeDescription
type *
callback *

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