aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-08-21 15:46:23 -0400
committerbob <bcz@cs.brown.edu>2019-08-21 15:46:23 -0400
commit3e33c2f1642195e023673cf669c4b5820fe2aeba (patch)
tree46e8a5e09516a42a68faf9c1b6426defb809614c /src/new_fields/Doc.ts
parent2677b811a49788cea9c98d89f85c4959d72e99f7 (diff)
restructed presentationview
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index ca05dfa45..e5b609966 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -621,6 +621,9 @@ export namespace Doc {
manager.BrushedDoc.delete(doc);
manager.BrushedDoc.delete(Doc.GetDataDoc(doc));
}
+ export function UnBrushAllDocs() {
+ manager.BrushedDoc.clear();
+ }
}
Scripting.addGlobal(function renameAlias(doc: any, n: any) { return StrCast(doc.title).replace(/\([0-9]*\)/, "") + `(${n})`; });
Scripting.addGlobal(function getProto(doc: any) { return Doc.GetProto(doc); }); \ No newline at end of file