Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Observable

Hierarchy

  • Observable

Implements

Implemented by

Index

Constructors

constructor

Properties

_isViewBase

_isViewBase: boolean

Private _observers

_observers: object

Type declaration

    Static propertyChangeEvent

    propertyChangeEvent: string

    Methods

    _createPropertyChangeData

    • _createPropertyChangeData(propertyName: string, value: any, oldValue?: any): PropertyChangeData

    _emit

    • _emit(eventNames: string): void

    Private _getEventList

    • _getEventList(eventName: string, createIfNeeded?: boolean): ListenerEntry[]

    Private _globalNotify

    • _globalNotify<T>(eventClass: string, eventType: string, data: T): void

    addEventListener

    • addEventListener(eventNames: string, callback: function, thisArg?: any): void

    get

    • get(name: string): any

    hasListeners

    • hasListeners(eventName: string): boolean

    notify

    • notify<T>(data: T): void

    notifyPropertyChange

    • notifyPropertyChange(name: string, value: any, oldValue?: any): void

    off

    • off(eventNames: string, callback?: any, thisArg?: any): void

    on

    • on(eventNames: string, callback: function, thisArg?: any): void

    once

    • once(event: string, callback: function, thisArg?: any): void

    removeEventListener

    • removeEventListener(eventNames: string, callback?: any, thisArg?: any): void

    set

    • set(name: string, value: any): void

    setProperty

    • setProperty(name: string, value: any): void

    Private Static _handleEvent

    • _handleEvent<T>(observers: ListenerEntry[], data: T): void

    Private Static _indexOfListener

    • _indexOfListener(list: ListenerEntry[], callback: function, thisArg?: any): number

    Static addEventListener

    • addEventListener(eventName: string, callback: any, thisArg?: any): void

    Static off

    • off(eventName: string, callback?: any, thisArg?: any): void

    Static on

    • on(eventName: string, callback: any, thisArg?: any): void

    Static once

    • once(eventName: string, callback: any, thisArg?: any): void

    Static removeEventListener

    • removeEventListener(eventName: string, callback?: any, thisArg?: any): void

    Legend

    • Module
    • Object literal
    • Variable
    • Function
    • Function with type parameter
    • Index signature
    • Type alias
    • Enumeration
    • Enumeration member
    • Property
    • Method
    • Interface
    • Interface with type parameter
    • Constructor
    • Property
    • Method
    • Index signature
    • Class
    • Class with type parameter
    • Constructor
    • Property
    • Method
    • Accessor
    • Index signature
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Inherited accessor
    • Protected property
    • Protected method
    • Protected accessor
    • Private property
    • Private method
    • Private accessor
    • Static property
    • Static method