diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-08-22 11:45:40 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-08-22 11:45:40 -0400 |
commit | 846ff1cc9ab132c95ab5797d598f4ff59e7e5e58 (patch) | |
tree | 079a8a98836186fb5b6ab27b8282c4ee2020dd31 /src/new_fields/Doc.ts | |
parent | a32a1b4f32ee309c306ab9c9fdc90573cddeed11 (diff) | |
parent | 0ee435f6bd686c667a067fa750b4589cedfb0070 (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.ts | 3 |
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 |