From fad74e1d6ea44bb4ddf9ed31092342b57be432d8 Mon Sep 17 00:00:00 2001 From: Anders Schuller Date: Wed, 4 Jan 2017 19:53:59 +0000 Subject: [PATCH] Fix #254: Correct signature of history navigation methods Only the go() method should take a delta parameter, which should always be an Int --- src/main/scala/org/scalajs/dom/raw/lib.scala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/scala/org/scalajs/dom/raw/lib.scala b/src/main/scala/org/scalajs/dom/raw/lib.scala index 4891cebe4..cc2de88e1 100644 --- a/src/main/scala/org/scalajs/dom/raw/lib.scala +++ b/src/main/scala/org/scalajs/dom/raw/lib.scala @@ -5146,8 +5146,6 @@ class History extends js.Object { */ def length: Int = js.native - def back(distance: js.Any): Unit = js.native - /** * Goes to the previous page in session history, the same action as when the user clicks * the browser's Back button. Equivalent to history.go(-1). Note: Calling this @@ -5158,8 +5156,6 @@ class History extends js.Object { */ def back(): Unit = js.native - def forward(distance: js.Any): Unit = js.native - /** * Goes to the next page in session history, the same action as when the user clicks the * browser's Forward button; this is equivalent to history.go(1). Note: Calling @@ -5170,7 +5166,7 @@ class History extends js.Object { */ def forward(): Unit = js.native - def go(delta: js.Any): Unit = js.native + def go(delta: Int): Unit = js.native /** * Loads a page from the session history, identified by its relative location to the