diff options
author | bob <bcz@cs.brown.edu> | 2019-02-19 12:43:46 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-19 12:43:46 -0500 |
commit | eeadf7edc8a9c808a9b34b8aef92706579c69cbc (patch) | |
tree | 842f14532aee5dbf52b804b317838559296daf9e /src/client/documents/Documents.ts | |
parent | 39e1e9f550be2ae128a32f58f35da40e09f54345 (diff) | |
parent | c0d6dcb87743293fef10342c123c41390422595a (diff) |
converting main to use a DockingView
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index abb9544a5..920068273 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -121,10 +121,10 @@ export namespace Documents { return dockProto; } - export function DockDocument(documents: Array<Document>, options: DocumentOptions = {}): Document { - let doc = GetDockPrototype().MakeDelegate(); + export function DockDocument(config: string, options: DocumentOptions = {}, id?: string): Document { + let doc = GetDockPrototype().MakeDelegate(id); setupOptions(doc, options); - doc.Set(KeyStore.Data, new ListField(documents)); + doc.SetText(KeyStore.Data, config); return doc; } |