diff options
author | bobzel <zzzman@gmail.com> | 2020-09-11 18:07:08 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-11 18:07:08 -0400 |
commit | 1aacedfa3f558e243f2bca92c62fc0d0cfdce58a (patch) | |
tree | aafcbac134fdaccd8b26908d0fb40c12052eeff2 /src/client/util/LinkManager.ts | |
parent | 1b8eb5a59edfcef36e8f6450aca82de46d2044eb (diff) | |
parent | e3c8534e129a3ce70a2673c92cadccec26f6cdc7 (diff) |
Merge branch 'master' into bug_fixes
Diffstat (limited to 'src/client/util/LinkManager.ts')
-rw-r--r-- | src/client/util/LinkManager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts index 223f0e7ef..c7c45ec61 100644 --- a/src/client/util/LinkManager.ts +++ b/src/client/util/LinkManager.ts @@ -200,7 +200,7 @@ export class LinkManager { // finds the opposite anchor of a given anchor in a link //TODO This should probably return undefined if there isn't an opposite anchor //TODO This should also await the return value of the anchor so we don't filter out promises - public getOppositeAnchor(linkDoc: Doc, anchor: Doc): Doc | undefined { + public static getOppositeAnchor(linkDoc: Doc, anchor: Doc): Doc | undefined { const a1 = Cast(linkDoc.anchor1, Doc, null); const a2 = Cast(linkDoc.anchor2, Doc, null); if (Doc.AreProtosEqual(anchor, a1)) return a2; |