Skip to content

Commit 1582e48

Browse files
committed
Update FormData with add constructor
1 parent aa5a898 commit 1582e48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ import scala.scalajs.js.|
1616
*/
1717
@js.native
1818
@JSGlobal
19-
class FormData(form: HTMLFormElement = js.native) extends js.Iterable[js.Tuple2[String, String | Blob]] {
19+
class FormData extends js.Iterable[js.Tuple2[String, String | Blob]] {
20+
21+
def this(form: HTMLFormElement) = this()
22+
23+
def this(form: HTMLFormElement, submitter: HTMLElement) = this()
2024

2125
/** The `append()` method of the `FormData` interface appends a new value onto an existing key inside a `FormData`
2226
* object, or adds the key if it does not already exist.

0 commit comments

Comments
 (0)