mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 05:04:57 +08:00
Clean up documentation of Whenable
This commit is contained in:
parent
de51fe3116
commit
16ebcf70c9
@ -41,7 +41,7 @@ export abstract class Whenable<T> implements IDestroyable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up a fall to `fn` *when* any of the `conditions` are met.
|
||||
* Sets up a call to `fn` *when* any of the `conditions` are met.
|
||||
* @param conditions The conditions to match.
|
||||
* @param fn The function to call.
|
||||
* @returns This.
|
||||
@ -64,7 +64,7 @@ export abstract class Whenable<T> implements IDestroyable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Notifies all the whenables of a given condition.
|
||||
* Notifies all the listeners of a given condition.
|
||||
* @param condition The new condition that has been met.
|
||||
*/
|
||||
protected notifyCondition(condition: T) {
|
||||
|
Loading…
Reference in New Issue
Block a user