trait
JSApp extends AnyRef
Abstract Value Members
-
abstract
def
main(): Unit
Concrete Value Members
-
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (JSApp, B)
-
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
-
-
-
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (JSApp, B)
Inherited by implicit conversion any2stringadd from
JSApp to any2stringadd[JSApp]
Inherited by implicit conversion StringFormat from
JSApp to StringFormat[JSApp]
Inherited by implicit conversion Ensuring from
JSApp to Ensuring[JSApp]
Inherited by implicit conversion ArrowAssoc from
JSApp to ArrowAssoc[JSApp]
Base class for top-level, entry point main objects.
Before Scala.js 0.6.18, a top-level object had to extend
js.JSApp
to be recognized by the sbt plugin as a "main" object, to be executed withrun
. Starting with Scala.js 0.6.18, any object with a standard main method of the formwill be recognized by the sbt plugin, just like for a JVM project.
In order for the
main
method to be considered by the sbt plugin, setscalaJSUseMainModuleInitializer := true
in your build.
JSApp is therefore deprecated, and should not be used anymore. It will disappear before 1.0.0 final.
Also note that an object extending JSApp is not exported to JavaScript anymore, nor is its
main()
method. Explicitly export the object and/or its main method if necessary.(Since version 1.0.0-M1)