diff options
| author | bob <bcz@cs.brown.edu> | 2019-02-21 13:44:58 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-02-21 13:44:58 -0500 |
| commit | 81736366c3276af81d842709d248d4969e1d173e (patch) | |
| tree | 11f30594213e473abe74c8d836b9a78d46937332 /src/client/views/collections/CollectionFreeFormView.tsx | |
| parent | 8f8cfc60098fbb87e791a86d76d7c312b28de276 (diff) | |
everything works.
Diffstat (limited to 'src/client/views/collections/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionFreeFormView.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionFreeFormView.tsx b/src/client/views/collections/CollectionFreeFormView.tsx index 07e9c0899..986bcdcee 100644 --- a/src/client/views/collections/CollectionFreeFormView.tsx +++ b/src/client/views/collections/CollectionFreeFormView.tsx @@ -40,13 +40,11 @@ export class CollectionFreeFormView extends CollectionViewBase { constructor(props: CollectionViewProps) { super(props); - - this.drop = this.drop.bind(this); } - @action @undoBatch - drop(e: Event, de: DragManager.DropEvent) { + @action + drop = (e: Event, de: DragManager.DropEvent) => { const doc: DocumentView = de.data["document"]; if (doc.props.ContainingCollectionView && doc.props.ContainingCollectionView !== this) { doc.props.ContainingCollectionView.removeDocument(doc.props.Document); |
