aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DragManager.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-22 15:25:00 -0500
committerbob <bcz@cs.brown.edu>2019-02-22 15:25:00 -0500
commitb53c5bfd421a56be1d8b0ea79209cdae01991ca1 (patch)
tree3a2994e6c74657f168e9d9d8cf76ab98c45024c1 /src/client/util/DragManager.ts
parentd2a34dca0cac114190f8f0eb36769b2b8fd9f329 (diff)
parentbc9096366d10654d16ed84251e7f4b7fb3a46727 (diff)
Merge branch 'collectionView'
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r--src/client/util/DragManager.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts
index 6d5fe12a7..eb4b3aeaa 100644
--- a/src/client/util/DragManager.ts
+++ b/src/client/util/DragManager.ts
@@ -44,6 +44,7 @@ export namespace DragManager {
drop: (e: Event, de: DropEvent) => void;
}
+
export function MakeDropTarget(element: HTMLElement, options: DropOptions): DragDropDisposer {
if ("canDrop" in element.dataset) {
throw new Error("Element is already droppable, can't make it droppable again");