aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SelectionManager.ts
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-06-24 15:59:22 -0400
committeryipstanley <stanley_yip@brown.edu>2019-06-24 15:59:22 -0400
commita99639e9073ea154728ff9676c41af646791f4cd (patch)
tree027ef2ae68f00432c99cf1caf6ad4d9c9547b5d8 /src/client/util/SelectionManager.ts
parent65288e33b49404d21012323fcb53fefb3f646fbf (diff)
parentd475b19e9ba7bc8870ec7bc1e10b5cc88decea0b (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into pdf_snippet
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) => {