Skip to content

Commit 81c914f

Browse files
committed
Node: insertBefore() expects two arguments
1 parent 118239b commit 81c914f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,7 @@ class Node extends EventTarget {
11141114
* MDN
11151115
*/
11161116
def lookupNamespaceURI(prefix: String): String = js.native
1117+
11171118
/**
11181119
* Clone a Node, and optionally, all of its contents. By default, it clones the content
11191120
* of the node.
@@ -1136,13 +1137,14 @@ class Node extends EventTarget {
11361137
* MDN
11371138
*/
11381139
def replaceChild(newChild: Node, oldChild: Node): Node = js.native
1140+
11391141
/**
11401142
* Inserts the first Node given in a parameter immediately before the second, child of
11411143
* this element, Node.
11421144
*
11431145
* MDN
11441146
*/
1145-
def insertBefore(newChild: Node, refChild: Node = js.native): Node = js.native
1147+
def insertBefore(newChild: Node, refChild: Node): Node = js.native
11461148
}
11471149

11481150

0 commit comments

Comments
 (0)