Home Reference Source
import {Observable} from './scripts/core/safeobservable.js'
public class | source

Observable

Extends:

AbstractObservable → Observable

Static Method Summary

Static Public Methods
public static

mixin(cls: *)

public static

Method Summary

Public Methods
public
public

off(type: *, child: *, callback: *): *

if callback is undefined, then all callbacks associated with child will be removed

public

on(type: *, child: *, callback: *): *

public

once(type: *, child: *, callback: *): *

Inherited Summary

From class AbstractObservable
public static

observeDefine(): {"events": *}

public

Static Public Methods

public static mixin(cls: *) source

Params:

NameTypeAttributeDescription
cls *

public static observeDefine() source

Override:

AbstractObservable#observeDefine

Public Methods

public isValid(): boolean source

Return:

boolean

public off(type: *, child: *, callback: *): * source

if callback is undefined, then all callbacks associated with child will be removed

Params:

NameTypeAttributeDescription
type *
child *
callback *

Return:

*

public on(type: *, child: *, callback: *): * source

Params:

NameTypeAttributeDescription
type *
child *
callback *

Return:

*

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

Params:

NameTypeAttributeDescription
type *
child *
callback *

Return:

*