aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-08-22 11:45:40 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-08-22 11:45:40 -0400
commit846ff1cc9ab132c95ab5797d598f4ff59e7e5e58 (patch)
tree079a8a98836186fb5b6ab27b8282c4ee2020dd31 /src/new_fields/Doc.ts
parenta32a1b4f32ee309c306ab9c9fdc90573cddeed11 (diff)
parent0ee435f6bd686c667a067fa750b4589cedfb0070 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into bulletdictation
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