Add jsdoc comment

This commit is contained in:
RMidhunSuresh 2022-01-06 15:02:44 +05:30
parent 90c9018aa4
commit a2ab36480f

View file

@ -329,8 +329,13 @@ export class Timeline {
} }
} }
_getTrackedEntry(id) { /**
return this.getByEventId(id) ?? this._contextEntriesNotInTimeline.get(id); * Fetches an entry with the given event-id from remoteEntries or contextEntriesNotInTimeline.
* @param {string} eventId event-id of the entry
* @returns entry if found, undefined otherwise
*/
_getTrackedEntry(eventId) {
return this.getByEventId(eventId) ?? this._contextEntriesNotInTimeline.get(eventId);
} }
async _getEventFromStorage(eventId) { async _getEventFromStorage(eventId) {