Skip to content

Commit 97d9504

Browse files
committed
update readme/manual-testing to scala 2.12.2, which reduces readme code size from 1.5m to 1.3m
1 parent cda2d97 commit 97d9504

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ val shared = Seq(
2828
scalaJSStage in Global := FullOptStage,
2929
organization := "com.lihaoyi",
3030
version := _root_.fastparse.Constants.version,
31-
scalaVersion := "2.11.8",
31+
scalaVersion := "2.12.2",
3232
libraryDependencies += "com.lihaoyi" %% "acyclic" % "0.1.5" % "provided",
3333
addCompilerPlugin("com.lihaoyi" %% "acyclic" % "0.1.5"),
3434
autoCompilerPlugins := true,
@@ -222,7 +222,7 @@ lazy val demo = project.enablePlugins(ScalaJSPlugin)
222222
.settings(shared:_*)
223223
.settings(
224224
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.8.2",
225-
libraryDependencies += "com.lihaoyi" %%% "scalatags" % "0.5.3",
225+
libraryDependencies += "com.lihaoyi" %%% "scalatags" % "0.6.5",
226226
emitSourceMaps := false,
227227
publishArtifact := false,
228228
publishTo := Some(Resolver.file("Unused transient repository", file("target/unusedrepo")))

demo/src/main/scala/demo/DemoMain.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ object DemoMain {
155155
for(track <- remaining) track.savedTicks += tillNext
156156
assert(remaining.exists(_.tillNext == 0))
157157
logs.append("Sleeping:\t" + milliSleep + "ms")
158-
dom.setTimeout(() => tick(), milliSleep)
158+
dom.window.setTimeout(() => tick(), milliSleep)
159159
false
160160
}else{
161161
// `remaining` is empty, nothing left to continue playing,

0 commit comments

Comments
 (0)