diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-06-14 12:50:55 -0400 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-06-14 12:50:55 -0400 |
commit | 4818b12510404e7d9cf07b7e872c49d7b752976a (patch) | |
tree | 8c815f134d6909e476bee68db99541b6b0e0c353 /src/new_fields/Doc.ts | |
parent | 94ed67966e7fdc7aa36b1a8b045153d0d661ce57 (diff) | |
parent | 41c290677030cde827c438d9bfda0dbeac64aa14 (diff) |
Merge branch 'pdf_impl' of https://github.com/browngraphicslab/Dash-Web into pdf_impl
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 7e02a5bc5..c2cfda079 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -186,7 +186,8 @@ export namespace Doc { } // compare whether documents or their protos match - export function AreProtosEqual(doc: Doc, other: Doc) { + export function AreProtosEqual(doc?: Doc, other?: Doc) { + if (!doc || !other) return false; let r = (doc === other); let r2 = (doc.proto === other); let r3 = (other.proto === doc); |