From a3714f49cc347e7b766c03a82a7254b13f679d4e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Sat, 21 Mar 2020 14:26:56 +0100 Subject: [PATCH] group public methods for a tile together --- .../session/room/timeline/tiles/SimpleTile.js | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/src/domain/session/room/timeline/tiles/SimpleTile.js b/src/domain/session/room/timeline/tiles/SimpleTile.js index 48935948..8733c0dc 100644 --- a/src/domain/session/room/timeline/tiles/SimpleTile.js +++ b/src/domain/session/room/timeline/tiles/SimpleTile.js @@ -21,21 +21,26 @@ export default class SimpleTile { get hasDateSeparator() { return false; } - // TilesCollection contract? unused atm - get upperEntry() { - return this._entry; - } - - // TilesCollection contract? unused atm - get lowerEntry() { - return this._entry; - } emitUpdate(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) { return this._entry.compare(entry); } @@ -65,12 +70,5 @@ export default class SimpleTile { updateNextSibling(next) { } - - get internalId() { - return this._entry.asEventKey().toString(); - } - - get isPending() { - return this._entry.isPending; - } + // TilesCollection contract above }