diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-08-23 11:22:31 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-08-23 11:22:31 -0400 |
commit | 56753f8d87f7647d7012fd1c4c35daffc116ec11 (patch) | |
tree | 4ff3aeb8c50d6006c0d5b5c9748cdf9fd49d558c /src/new_fields/Doc.ts | |
parent | f0f0cc36654183921076db5a341fe7cac2bfdd3c (diff) | |
parent | ac23ac310985ac9042694473df3defb2adbd09f2 (diff) |
merged with master
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index e5b609966..f6114d476 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -626,4 +626,5 @@ export namespace Doc { } } 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 |