diff --git a/.travis.yml b/.travis.yml index ccd3d5a..b701c54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,4 @@ language: scala script: - sbt fullOptJS scala: - - 2.11.7 + - 2.11.8 diff --git a/build.sbt b/build.sbt index 54f852a..e93dad5 100644 --- a/build.sbt +++ b/build.sbt @@ -6,12 +6,12 @@ workbenchSettings name := "Scala.js+Vue.js example" -version := "0.1" +version := "0.2" -scalaVersion := "2.11.7" +scalaVersion := "2.11.8" libraryDependencies ++= Seq( - "org.scala-js" %%% "scalajs-dom" % "0.8.1" + "org.scala-js" %%% "scalajs-dom" % "0.9.1" ) bootSnippet := "example.T1().main(document.getElementById('mydiv'));" diff --git a/project/plugins.sbt b/project/plugins.sbt index e528aed..04b6712 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,5 @@ addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0") -addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.5") +addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.12") addSbtPlugin("com.lihaoyi" % "workbench" % "0.2.3") \ No newline at end of file diff --git a/src/main/scala/example/Todo.scala b/src/main/scala/example/Todo.scala index acfcec9..71b2cf0 100644 --- a/src/main/scala/example/Todo.scala +++ b/src/main/scala/example/Todo.scala @@ -6,6 +6,7 @@ import dom.ext.Ajax import scalajs.js import js.Dynamic.literal import com.felstar.scalajs.vue._ +import js.annotation.JSName @JSExport object Todo extends { @@ -27,7 +28,7 @@ object Todo extends { var done:Boolean=js.native var content:String=js.native } - @js.native + object DemoVueTodo{ def apply(done:Boolean,content:String)=literal(done=done,content=content).asInstanceOf[DemoVueTodo] }