diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-08-23 11:04:56 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-08-23 11:04:56 -0400 |
commit | dd4227a125c0cd679f6437fab85b1cd772a34f78 (patch) | |
tree | 20f8b37248c3bbcdf68c3e6207f312d54798621b /src/new_fields/Doc.ts | |
parent | 1fb290bcc1c46214cfd553f31c1282d2694530ea (diff) | |
parent | 20f7d2dca1c115c84f6ac89981ef1e3c7c9a2757 (diff) |
pulled from master
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index bd08edec8..6b72bc58f 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -664,6 +664,10 @@ export namespace 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 +Scripting.addGlobal(function getProto(doc: any) { return Doc.GetProto(doc); }); +Scripting.addGlobal(function copyField(field: any) { return ObjectField.MakeCopy(field); });
\ No newline at end of file |