mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
group public methods for a tile together
This commit is contained in:
parent
4176af56ea
commit
a3714f49cc
@ -21,21 +21,26 @@ export default class SimpleTile {
|
|||||||
get hasDateSeparator() {
|
get hasDateSeparator() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// TilesCollection contract? unused atm
|
|
||||||
get upperEntry() {
|
|
||||||
return this._entry;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TilesCollection contract? unused atm
|
|
||||||
get lowerEntry() {
|
|
||||||
return this._entry;
|
|
||||||
}
|
|
||||||
|
|
||||||
emitUpdate(paramName) {
|
emitUpdate(paramName) {
|
||||||
this._emitUpdate(this, paramName);
|
this._emitUpdate(this, paramName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TilesCollection contract
|
get internalId() {
|
||||||
|
return this._entry.asEventKey().toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
get isPending() {
|
||||||
|
return this._entry.isPending;
|
||||||
|
}
|
||||||
|
get upperEntry() {
|
||||||
|
return this._entry;
|
||||||
|
}
|
||||||
|
|
||||||
|
get lowerEntry() {
|
||||||
|
return this._entry;
|
||||||
|
}
|
||||||
|
|
||||||
compareEntry(entry) {
|
compareEntry(entry) {
|
||||||
return this._entry.compare(entry);
|
return this._entry.compare(entry);
|
||||||
}
|
}
|
||||||
@ -65,12 +70,5 @@ export default class SimpleTile {
|
|||||||
updateNextSibling(next) {
|
updateNextSibling(next) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// TilesCollection contract above
|
||||||
get internalId() {
|
|
||||||
return this._entry.asEventKey().toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
get isPending() {
|
|
||||||
return this._entry.isPending;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user