From 2cde8fb991340ab3b038453239d32832b4cef56b Mon Sep 17 00:00:00 2001 From: Thijs Koerselman Date: Wed, 3 Jun 2020 19:44:53 +0200 Subject: [PATCH] Remove obsolete comments --- src/collection.ts | 3 --- src/document.ts | 8 -------- 2 files changed, 11 deletions(-) diff --git a/src/collection.ts b/src/collection.ts index 89a878a..7d00893 100644 --- a/src/collection.ts +++ b/src/collection.ts @@ -225,9 +225,6 @@ export class ObservableCollection { * After the first promise has been resolved we want subsequent calls to * ready() to immediately return with the available data. Ready is only * meant to be used for initial data fetching - * - * @TODO change document to data maybe because data is observable so it - * won't get stale. */ this.readyPromise = Promise.resolve(this.docs) } diff --git a/src/document.ts b/src/document.ts index e2d556a..492dcb1 100644 --- a/src/document.ts +++ b/src/document.ts @@ -238,9 +238,6 @@ export class ObservableDocument { * After the first promise has been resolved we want subsequent calls to * ready() to immediately return with the available data. Ready is only * meant to be used for initial data fetching - * - * @TODO change document to data maybe because data is observable so it - * won't get stale. */ this.readyPromise = Promise.resolve(this.data) } @@ -259,11 +256,6 @@ export class ObservableDocument { return; } - // if (!this._ref) {// this.changeLoadingState(false); - - // throw Error("Can not fetch data on document with undefined ref"); - // } - this.logDebug("Fetch initial data"); /**