Skip to content

Commit 5efc489

Browse files
zetashiftarmanbilge
andcommitted
DataTransferItem should be a class with a non-public constructor
Co-authored-by: Arman Bilge <[email protected]>
1 parent 5a5f911 commit 5efc489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dom/src/main/scala/org/scalajs/dom/DataTransferItem.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import scala.scalajs.js
1010

1111
/** Each DataTransferItem object is associated with a [[DataTransfer]] object. */
1212
@js.native
13-
trait DataTransferItem extends js.Object {
13+
class DataTransferItem private[this] extends js.Object {
1414

1515
/** Returns the drag data item kind, one of: "string", "file". */
1616
def kind: DragDataItemKind = js.native

0 commit comments

Comments
 (0)