diff options
author | bobzel <zzzman@gmail.com> | 2020-07-07 10:01:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-07 10:01:33 -0400 |
commit | 06ef30846b8014d6701caa86b264612ceabc27d1 (patch) | |
tree | 69e1699c41688ffa984c3acc267f5ef2e77d62e2 /src/client/util/LinkManager.ts | |
parent | 0438137cd435c47ce334b15a4ad00cbd70d80662 (diff) | |
parent | 915f35e6d6c0b0f7bdb18c0c2a6aa88ee5df5eed (diff) |
Merge pull request #433 from browngraphicslab/anika_linking
Pull Request for Andy
Diffstat (limited to 'src/client/util/LinkManager.ts')
-rw-r--r-- | src/client/util/LinkManager.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts index 749fabfcc..6da581f35 100644 --- a/src/client/util/LinkManager.ts +++ b/src/client/util/LinkManager.ts @@ -1,4 +1,4 @@ -import { Doc, DocListCast } from "../../fields/Doc"; +import { Doc, DocListCast, Opt } from "../../fields/Doc"; import { List } from "../../fields/List"; import { listSpec } from "../../fields/Schema"; import { Cast, StrCast } from "../../fields/Types"; @@ -23,6 +23,10 @@ import { Scripting } from "./Scripting"; export class LinkManager { private static _instance: LinkManager; + + + public static currentLink: Opt<Doc>; + public static get Instance(): LinkManager { return this._instance || (this._instance = new this()); } |