Class: Observable

Iroha. Observable

new Observable()

Source:

Methods

addCallback(name, func, aThisObject, disposable) → {Iroha.Observable}

add callback function.
Parameters:
Name Type Argument Description
name string callback name
func Function callback function/method
aThisObject Object <optional>
object that will be a global object ('this') in func
disposable string <optional>
if 'disposable' specified, the callback function is treated as 'disposable'.
Source:
Returns:
this instance
Type
Iroha.Observable

doCallback(name, args) → {Object}

process callback functions.
Parameters:
Name Type Argument Description
name string callback name
args Object <optional>
arguments for callback function
Source:
Returns:
result value of last one of the callback functions chain.
Type
Object

ignoreCallback(name, level) → {Iroha.Observable}

set callback ignoring level.
Parameters:
Name Type Argument Default Description
name string callback name
level string <optional>
"all" ignoring level - 'all', 'preserved', 'disposable', 'none'
Source:
Returns:
this instance
Type
Iroha.Observable

init() → {Iroha.Observable}

初期化(なにもしない)
Source:
Returns:
このインスタンス自身
Type
Iroha.Observable

removeCallback(name, func, aThisObject) → {Iroha.Observable}

remove callback function.
Parameters:
Name Type Argument Description
name string callback name
func Function <optional>
callback function/method to remove, if no funcs given, all callback funcs will be removed.
aThisObject Object <optional>
object that will be a global object ('this') in func
Source:
Returns:
this instance
Type
Iroha.Observable

removeDisposableCallback(name) → {Iroha.Observable}

remove 'disposable' callback function.
Parameters:
Name Type Description
name string callback name
Source:
Returns:
this instance
Type
Iroha.Observable