Skip to content

Commit

Permalink
data is required.
Browse files Browse the repository at this point in the history
  • Loading branch information
yilinwei committed Oct 8, 2023
1 parent fca6713 commit 3a54892
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions dom/src/main/scala/org/scalajs/dom/BlobEvent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ import scala.scalajs.js.annotation._
@js.native
class BlobEvent(typeArg: String, init: js.UndefOr[BlobEventInit]) extends Event(typeArg, init) {

def this(typeArg: String) = {
this(typeArg, js.undefined)
def this(init: BlobEventInit) = {
this("dataavailable", init)
}

def this() = {
this("dataavailable", js.undefined)
}

val data: Blob = js.native
def data: Blob = js.native
}
2 changes: 1 addition & 1 deletion dom/src/main/scala/org/scalajs/dom/BlobEventInit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import scala.scalajs.js

@js.native
trait BlobEventInit extends EventInit {
var data: js.UndefOr[Blob]
var data: Blob
}

0 comments on commit 3a54892

Please sign in to comment.