File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package org.scalajs
2
2
3
3
import scala .scalajs .js
4
4
import scala .scalajs .js .|
5
+ import scala .scalajs .js .annotation ._
5
6
import scala .scalajs .js .typedarray .ArrayBuffer
6
7
7
8
package object dom {
@@ -20,8 +21,15 @@ package object dom {
20
21
*/
21
22
type Transferable = ArrayBuffer | MessagePort
22
23
23
- lazy val window : Window = js.Dynamic .global.window.asInstanceOf [Window ]
24
- lazy val document : html.Document = window.document
24
+ @ js.native
25
+ @ JSGlobal (" window" )
26
+ val window : Window = js.native
25
27
26
- lazy val console : Console = js.Dynamic .global.console.asInstanceOf [Console ] // #411
28
+ @ js.native
29
+ @ JSGlobal (" document" )
30
+ val document : html.Document = js.native
31
+
32
+ @ js.native
33
+ @ JSGlobal (" console" )
34
+ val console : Console = js.native
27
35
}
You can’t perform that action at this time.
0 commit comments