Options
All
  • Public
  • Public/Protected
  • All
Menu

External module event/internal

Index

Type aliases

ConnectionsMap

ConnectionsMap: PlainObject<Connection[]>

Variables

Const ASTERISK

ASTERISK: "*" = "*"

Const FAKE_TYPE

FAKE_TYPE: string[] = [""]

Const NAMESPACE_PREFIX

NAMESPACE_PREFIX: "." = "."

Const SPLIT_REGEX

SPLIT_REGEX: RegExp = /\s+/

Const copyEvent

copyEvent: (Anonymous function) = (Object.keys != null ?( target: PlainObject, source: PlainObject ): void => {const keys = Object.keys(source);for( let i = 0, imax = keys.length; i < imax; ++i ) {const key = keys[i];if( key in target ) {continue;}target[ key ] = source[ key ];}} :( target: PlainObject, source: PlainObject ): void => {for( const key in source ) {if( key in target ) {continue;}target[ key ] = source[ key ];}})

Functions

Const addConnection

  • addConnection(context: Connector, target: unknown, type: string[], handler: Function, limit: number | null): void

Const addOnoff

Const addOnon

Const callOnoff

Const callOnon

Const checkOnoffType

  • checkOnoffType(onoff: Connection, type: string[]): boolean

Const checkOnonType

  • checkOnonType(onon: Connection, type: string[]): boolean

Const filter

  • filter(context: Connector, connections: Connection[], type: string[], handler: Function | null | undefined, target: unknown, callOnOff: boolean): Connection[]

Const filterConnection

  • filterConnection(context: Connector, target: unknown, nameToConnections: ConnectionsMap, name: string, type: string[], handler: Function | null | undefined, callOnOff: boolean): void

Const filterConnections

  • filterConnections(context: Connector, target: unknown, nameToConnections: ConnectionsMap, name: string, type: string[], handler: Function | null | undefined, callOnOff: boolean): void

Const getArgs

  • getArgs(eventObject: unknown, params: unknown[] | null | undefined): unknown[]

Const getChain

  • getChain(object: unknown, target: Node | null): unknown[]

Const match

  • match(connection: Connection, type: string[], target: unknown): boolean

Const parse

  • parse(typesString: string): string[][]

Const removeConnection

  • removeConnection(context: Connector, target: unknown, type: string[], handler: Function | null | undefined): void

Const removeOnoff

Const removeOnon

Const trigger

  • trigger(context: Connector, object: unknown, target: Node | null, type: string[], originalEvent: OriginalEvent | null, params: unknown[] | null | undefined, results: unknown[]): void

Const triggerChain

  • triggerChain(context: Connector, chain: unknown[], connections: Connection[], type: string[], e: Event, args: unknown[], results: unknown[]): void

Const triggerConnections

  • triggerConnections(context: Connector, connections: Connection[], type: string[], e: Event, args: unknown[], results: unknown[] | null | undefined): void

Const triggerNamed

  • triggerNamed(context: Connector, object: unknown, target: Node | null, name: string, type: string[], originalEvent: OriginalEvent | null, params: unknown[] | null | undefined, results: unknown[]): void

Const triggerUnnamed

  • triggerUnnamed(context: Connector, object: unknown, target: Node | null, type: string[], originalEvent: OriginalEvent | null, params: unknown[] | null | undefined, results: unknown[]): void

Generated using TypeDoc