aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-19 12:43:46 -0500
committerbob <bcz@cs.brown.edu>2019-02-19 12:43:46 -0500
commit260e0a361fefea686807d5b1cf8445ddc3f3045c (patch)
tree842f14532aee5dbf52b804b317838559296daf9e /src/client/documents/Documents.ts
parent98f5f8200ad98f93f14eb97af9fdc6619dabe442 (diff)
parent39c6ba3292467979e310f3b577041c2f5e38273f (diff)
converting main to use a DockingView
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts6
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;
}