File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
example/src/main/scala/io/udash/demos/jquery Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 11package io .udash .demos .jquery
22
33import io .udash .demos .jquery .views .IndexView
4- import io .udash .wrappers .jquery ._
54import org .scalajs .dom
6- import org .scalajs .dom .Element
75
86import scala .scalajs .js .annotation .JSExport
97
108object Init {
119
1210 @ JSExport
13- def main (args : Array [String ]): Unit = {
14- jQ((_ : Element ) => {
15- val appRoot = jQ(" #application" ).get(0 )
16- if (appRoot.isEmpty) {
17- dom.console.error(" Application root element not found! Check you index.html file!" )
18- } else {
19- appRoot.get.appendChild(IndexView .content.render)
20- // applicationInstance.run(appRoot.get)
21- }
22- })
23- }
11+ def main (args : Array [String ]): Unit =
12+ dom.document.querySelector(" #application" ).appendChild(IndexView .content.render)
2413}
You can’t perform that action at this time.
0 commit comments