aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DragManager.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-22 13:42:25 -0500
committerbob <bcz@cs.brown.edu>2019-02-22 13:42:25 -0500
commit370ac4fde98f2ff25b2dedd6b0857c88c6d7f55b (patch)
tree5c1a8e1e554f5cd78ef05fcf1806989c7565dd32 /src/client/util/DragManager.ts
parent0a5b336a638694b8d2f9d7366dc4dca6af97e970 (diff)
moved common code into CollectionViewBase.
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");