From f3544f004a696e4682fbd8d1f18ac69beec59439 Mon Sep 17 00:00:00 2001 From: yipstanley Date: Wed, 13 Feb 2019 20:17:21 -0500 Subject: asdfkj --- src/client/documents/Documents.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/documents') diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 460bf9b23..f362af392 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -137,9 +137,9 @@ export namespace Documents { } let collectionProto: Document; - function GetCollectionPrototype(): Document { + function GetCollectionPrototype(isMainDoc: boolean): Document { if (!collectionProto) { - collectionProto = new Document(); + collectionProto = new Document(isMainDoc ? "dash" : undefined); collectionProto.Set(KeyStore.X, new NumberField(0)); collectionProto.Set(KeyStore.Y, new NumberField(0)); collectionProto.Set(KeyStore.Scale, new NumberField(1)); @@ -153,8 +153,8 @@ export namespace Documents { return collectionProto; } - export function CollectionDocument(documents: Array, options: DocumentOptions = {}): Document { - let doc = GetCollectionPrototype().MakeDelegate(); + export function CollectionDocument(documents: Array, options: DocumentOptions = {}, isMainDoc: boolean = false): Document { + let doc = GetCollectionPrototype(isMainDoc).MakeDelegate(); setupOptions(doc, options); doc.Set(KeyStore.Data, new ListField(documents)); return doc; -- cgit v1.2.3-70-g09d2