Closed fancellu closed 10 years ago
It needs the @JSExport
annotation on the ScalaJSExample
object as well as its main
method.
import scala.scalajs.js.annotation.JSExport
...
@JSExport
object ScalaJSExample {
...
@JSExport
def main(args: Array[String]): Unit = {
...
}
}
Thanks.
Yeah, sorry I didn't send out any emails or messages about the breaking change, I figured that few people use it and those that do use it (and who care) would come and let me know, as you've do so here =P
Down again, even more now?
Works fine for me.
How odd. Was dead for me on chrome and IE. Broken links, wouldn't come up, even in anonymous mode etc.
Had to ctrl-refresh to get it working in chrome. Never had that before.
Still refuses to work in IE. Perhaps my PC has gone mad.
I bet it's some caching issue; try clearing cache and reloading?
Yes. Something bonkers. If others don't see it then it's just me.
Dino On 2 Apr 2014 16:18, "Li Haoyi" notifications@github.com wrote:
I bet it's some caching issue; try clearing cache and reloading?
Reply to this email directly or view it on GitHubhttps://github.com/lihaoyi/scala-js-fiddle/issues/6#issuecomment-39343063 .
Previously ok code not working
http://www.scala-js-fiddle.com/gist/9405209/Turmites.scala
http://www.scala-js-fiddle.com/gist/9131923
Dino.