group public methods for a tile together

This commit is contained in:
Bruno Windels 2020-03-21 14:26:56 +01:00
parent 4176af56ea
commit a3714f49cc

View file

@ -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;
}
} }