Methods
-
addCallback(name, func, aThisObject, disposable) → {Iroha.Observable}
-
add callback function.
Parameters:
Name Type Argument Description namestring callback name funcFunction callback function/method aThisObjectObject <optional>
object that will be a global object ('this') in func disposablestring <optional>
if 'disposable' specified, the callback function is treated as 'disposable'. Returns:
this instance- Type
- Iroha.Observable
-
doCallback(name, args) → {Object}
-
process callback functions.
Parameters:
Name Type Argument Description namestring callback name argsObject <optional>
arguments for callback function 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 namestring callback name levelstring <optional>
"all" ignoring level - 'all', 'preserved', 'disposable', 'none' Returns:
this instance- Type
- Iroha.Observable
-
init() → {Iroha.Observable}
-
初期化(なにもしない)
Returns:
このインスタンス自身- Type
- Iroha.Observable
-
removeCallback(name, func, aThisObject) → {Iroha.Observable}
-
remove callback function.
Parameters:
Name Type Argument Description namestring callback name funcFunction <optional>
callback function/method to remove, if no funcs given, all callback funcs will be removed. aThisObjectObject <optional>
object that will be a global object ('this') in func Returns:
this instance- Type
- Iroha.Observable
-
removeDisposableCallback(name) → {Iroha.Observable}
-
remove 'disposable' callback function.
Parameters:
Name Type Description namestring callback name Returns:
this instance- Type
- Iroha.Observable