aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SelectionManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-11 22:18:19 -0400
committerbobzel <zzzman@gmail.com>2020-08-11 22:18:19 -0400
commitc626dff8553c0501784e8b82535f3d167a9f82c6 (patch)
treedc8395ee01fe97dc99ccf9dd39397db8b70e9d6f /src/client/util/SelectionManager.ts
parent4f47449af32853266fb87067231b5f3c3946002f (diff)
fixed crashes in PresBox when selecting in tree view. fixed selection of treeView items to update PropertiesView
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r--src/client/util/SelectionManager.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index 05ba00331..113278593 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -84,11 +84,4 @@ export namespace SelectionManager {
export function SelectedDocuments(): Array<DocumentView> {
return Array.from(manager.SelectedDocuments.keys());
}
-}
-
-
-Scripting.addGlobal(function selectDoc(doc: any) {
- const view = DocumentManager.Instance.getDocumentView(doc);
- view && SelectionManager.SelectDoc(view, false);
- //Doc.UserDoc().activeSelection = new List([doc]);
-}); \ No newline at end of file
+} \ No newline at end of file