aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-06-26 16:05:24 -0400
committerFawn <fangrui_tong@brown.edu>2019-06-26 16:05:24 -0400
commit681ba524496d40aecb832fc79d68d7695435aed8 (patch)
tree8a4570c20634663454cd80aa6d4c42ad8d6081dc /src/client/util/DocumentManager.ts
parenta81677c7dffafa5134d4c5cbe893f7a886eaab63 (diff)
fixed link alias dragging
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 877475347..fed30bbdc 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -72,11 +72,7 @@ export class DocumentManager {
if (doc === toFind) {
toReturn.push(view);
} else {
- // if (Doc.AreProtosEqual(doc, toFind)) {
- // toReturn.push(view);
-
- let docSrc = FieldValue(doc.proto);
- if (docSrc && Object.is(docSrc, toFind)) {
+ if (Doc.AreProtosEqual(doc, toFind)) {
toReturn.push(view);
}
}