mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-18 19:01:55 +02: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 conditions The conditions to match.
|
||||||
* @param fn The function to call.
|
* @param fn The function to call.
|
||||||
* @returns This.
|
* @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.
|
* @param condition The new condition that has been met.
|
||||||
*/
|
*/
|
||||||
protected notifyCondition(condition: T) {
|
protected notifyCondition(condition: T) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user