Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new Model(obj?: object): Model

Properties

Protected _events

_events: object

Type declaration

Private _model

_model: object

Type declaration

  • [key: string]: any

Methods

Private _destroyModel

  • _destroyModel(): void

Protected _offAllListener

  • _offAllListener(): void

destroy

  • destroy(): void

drop

  • drop(key: string): boolean

get

  • get(key: string): any

has

  • has(key: string): boolean

off

  • off(eventName: string, handler?: IHandler): void

on

  • on(eventsName: string | string[], handler: IHandler): void

reset

  • reset(object: object): void
  • Reset Model by another value or Model

    Parameters

    • object: object
      • [key: string]: any

    Returns void

set

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

toJSON

  • toJSON(): any

trigger

  • trigger(eventName: string, eventParams?: __type | undefined | null): void
  • Trigger Event with Param

    Parameters

    • eventName: string
    • Default value eventParams: __type | undefined | null = {}

    Returns void

Static Protected _isUndefined

  • _isUndefined(obj: any): boolean

Static isModel

  • isModel(object: any): boolean

Generated using TypeDoc