aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SelectionManager.ts
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-06-20 11:31:15 -0400
committerFawn <fangrui_tong@brown.edu>2019-06-20 11:31:15 -0400
commitcd2db5bf11fb89e3cd7016f7f798d65698c74c5e (patch)
tree9e46a9a6b940720e68eb1f390dacecae3f4730a8 /src/client/util/SelectionManager.ts
parent73f03785f938542a91b28b35043f2feda2bc1432 (diff)
parente9d62f4ca0dbeb57e46239047041a8a04da7b504 (diff)
merge
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r--src/client/util/SelectionManager.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index 09bccb1a0..7dbb81e76 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -66,7 +66,7 @@ export namespace SelectionManager {
export function GetIsDragging() { return manager.IsDragging; }
export function SelectedDocuments(): Array<DocumentView> {
- return manager.SelectedDocuments;
+ return manager.SelectedDocuments.slice();
}
export function ViewsSortedHorizontally(): DocumentView[] {
let sorted = SelectionManager.SelectedDocuments().slice().sort((doc1, doc2) => {