From 33129113b3ebf3dd656bd58c34af476fb852e2f6 Mon Sep 17 00:00:00 2001 From: Sébastien Doeraene Date: Thu, 29 Jan 2015 17:50:33 +0100 Subject: Upgrade and update the whole thing for Scala.js 0.6.0-RC2. Both the builds, as well as the text of the book, have been completely updated for Scala.js 0.6.x. --- examples/demos/src/main/scala/scrollmenu/ScrollSpy.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/demos/src/main/scala/scrollmenu/ScrollSpy.scala') diff --git a/examples/demos/src/main/scala/scrollmenu/ScrollSpy.scala b/examples/demos/src/main/scala/scrollmenu/ScrollSpy.scala index f0b9dd4..9a64314 100644 --- a/examples/demos/src/main/scala/scrollmenu/ScrollSpy.scala +++ b/examples/demos/src/main/scala/scrollmenu/ScrollSpy.scala @@ -57,7 +57,7 @@ class ScrollSpy(structure: Tree[String], } js.Array( - menuItems.map(name => dom.document.getElementById(Controller.munge(name))) + menuItems.map(name => dom.document.getElementById(Controller.munge(name)).asInstanceOf[dom.HTMLElement]) .map((el) => () => offset(el, main)):_* ) } -- cgit v1.2.3