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 1
1
package io .udash .demos .jquery
2
2
3
3
import io .udash .demos .jquery .views .IndexView
4
- import io .udash .wrappers .jquery ._
5
4
import org .scalajs .dom
6
- import org .scalajs .dom .Element
7
5
8
6
import scala .scalajs .js .annotation .JSExport
9
7
10
8
object Init {
11
9
12
10
@ 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)
24
13
}
You can’t perform that action at this time.
0 commit comments