@uppy/drop-target: remove isFileTransfer from the public API (#3932)

This commit is contained in:
Antoine du Hamel 2022-08-01 17:57:44 +02:00 committed by GitHub
parent 0e555880e7
commit 5271d27c18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,10 +51,8 @@ export default class DropTarget extends BasePlugin {
}
}
isFileTransfer = isFileTransfer // TODO: expose this as a static instead (or don't expose it at all) in the next major.
handleDrop = async (event) => {
if (!this.isFileTransfer(event)) {
if (!isFileTransfer(event)) {
return
}
@ -97,7 +95,7 @@ export default class DropTarget extends BasePlugin {
}
handleDragOver = (event) => {
if (!this.isFileTransfer(event)) {
if (!isFileTransfer(event)) {
return
}
@ -116,7 +114,7 @@ export default class DropTarget extends BasePlugin {
}
handleDragLeave = (event) => {
if (!this.isFileTransfer(event)) {
if (!isFileTransfer(event)) {
return
}