aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-05-03 20:47:40 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-05-03 20:47:40 -0400
commit070787b6be93dca4a43ec7e893ae4ac4b4d80e59 (patch)
tree4b93ac202fe813033b6d07f7202ab217c0da79f8 /src/new_fields/Doc.ts
parent9b33ac1cb790e88558edb3e4626f5a7b759ea3db (diff)
parent95d89a193b25d19faf6da0af1412480a36fc9ebe (diff)
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web into newDocs
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index 3eea6d2b2..3055af1bf 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -36,6 +36,7 @@ export class Doc extends RefField {
const doc = new Proxy<this>(this, {
set: setter,
get: getter,
+ has: (target, key) => key in target.__fields,
ownKeys: target => Object.keys(target.__fields),
getOwnPropertyDescriptor: (target, prop) => {
if (prop in target.__fields) {