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 4dda4bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions dom/src/main/scala/org/scalajs/dom/BlobEvent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ import scala.scalajs.js.annotation._
/** The AnimationEvent interface represents events providing information related to animations. */
@JSGlobal
@js.native
class BlobEvent(typeArg: String, init: js.UndefOr[BlobEventInit]) extends Event(typeArg, init) {
class BlobEvent(typeArg: String, init: 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 4dda4bf

Please sign in to comment.