From 81c914fd3d66f52b7703645b285d14f4dd2579ef Mon Sep 17 00:00:00 2001 From: Tim Nieradzik Date: Sun, 8 Mar 2015 21:54:13 +0100 Subject: [PATCH] Node: insertBefore() expects two arguments --- src/main/scala/org/scalajs/dom/raw/lib.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/scala/org/scalajs/dom/raw/lib.scala b/src/main/scala/org/scalajs/dom/raw/lib.scala index 699cab36c..43f7bf5a2 100644 --- a/src/main/scala/org/scalajs/dom/raw/lib.scala +++ b/src/main/scala/org/scalajs/dom/raw/lib.scala @@ -1114,6 +1114,7 @@ class Node extends EventTarget { * MDN */ def lookupNamespaceURI(prefix: String): String = js.native + /** * Clone a Node, and optionally, all of its contents. By default, it clones the content * of the node. @@ -1136,13 +1137,14 @@ class Node extends EventTarget { * MDN */ def replaceChild(newChild: Node, oldChild: Node): Node = js.native + /** * Inserts the first Node given in a parameter immediately before the second, child of * this element, Node. * * MDN */ - def insertBefore(newChild: Node, refChild: Node = js.native): Node = js.native + def insertBefore(newChild: Node, refChild: Node): Node = js.native }