File tree Expand file tree Collapse file tree 12 files changed +34
-78
lines changed
src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 12 files changed +34
-78
lines changed Original file line number Diff line number Diff line change 1111 - 2.13.0-M1
1212jdk :
1313 - oraclejdk8
14+ env :
15+ - SCALAJS_VERSION=0.6.18
16+ - SCALAJS_VERSION=1.0.0-M1
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ scalacOptions ++= {
3232 }
3333}
3434
35+ scalacOptions ++= {
36+ if (scalaJSVersion.startsWith(" 0.6." )) Seq (" -P:scalajs:sjsDefinedByDefault" )
37+ else Nil
38+ }
39+
3540scmInfo := Some (ScmInfo (
3641 url(" https://github.com/scala-js/scala-js-dom" ),
3742 " scm:git:git@github.com:scala-js/scala-js-dom.git" ,
Original file line number Diff line number Diff line change 1- sbt.version =0.13.13
1+ sbt.version =0.13.15
Original file line number Diff line number Diff line change 1- addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.16" )
1+ val scalaJSVersion =
2+ Option (System .getenv(" SCALAJS_VERSION" )).getOrElse(" 0.6.18" )
3+
4+ addSbtPlugin(" org.scala-js" % " sbt-scalajs" % scalaJSVersion)
25
36addSbtPlugin(" com.lihaoyi" % " scalatex-sbt-plugin" % " 0.2.1" )
47
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import org.scalajs.dom.raw.FormData
55
66import scala .scalajs .js
77import scala .scalajs .js .annotation ._
8- import scala .scalajs .js .dom .experimental .JSIterable
98import scala .scalajs .js .typedarray .{ArrayBuffer , Uint8Array }
109
1110@ js.native
@@ -129,7 +128,6 @@ object RequestInit {
129128 * The underlying object is a dictionary. This trait is here to help encode
130129 * the types.
131130 */
132- @ ScalaJSDefined
133131trait RequestInit extends js.Object {
134132 var method : js.UndefOr [HttpMethod ]
135133
@@ -225,7 +223,6 @@ object Response extends js.Object {
225223 * definition in whatwg Fetch spec.
226224 *
227225 */
228- @ ScalaJSDefined
229226trait ResponseInit extends js.Object {
230227 var status : Int
231228 var statusText : ByteString
@@ -315,7 +312,10 @@ trait Body extends js.Object {
315312@ js.native
316313@ JSGlobal
317314class Headers (map : HeadersInit = js.Array [js.Array [String ]]())
318- extends JSIterable [js.Array [ByteString ]] {
315+ extends js.Iterable [js.Array [ByteString ]] {
316+
317+ @ JSName (js.Symbol .iterator)
318+ def jsIterator (): js.Iterator [js.Array [ByteString ]] = js.native
319319
320320 /**
321321 * The append() method of the Headers interface appends a new value onto an
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ class DeviceOrientationEvent(
2929 val absolute : Boolean = js.native
3030}
3131
32- @ ScalaJSDefined
3332trait DeviceOrientationEventInit extends js.Object {
3433
3534 /** Z-Axis rotation in degrees. */
@@ -58,7 +57,6 @@ object DeviceOrientationEventInit {
5857 }
5958}
6059
61- @ ScalaJSDefined
6260trait DeviceAcceleration extends js.Any {
6361
6462 /** The acceleration in x. In m/s<sup>2</sup>. */
@@ -71,7 +69,6 @@ trait DeviceAcceleration extends js.Any {
7169 val z : Double
7270}
7371
74- @ ScalaJSDefined
7572trait DeviceRotationRate extends js.Any {
7673
7774 /** The z axis rotation in degrees per second. */
@@ -101,7 +98,6 @@ class DeviceMotionEvent extends dom.Event {
10198 val interval : Double = js.native
10299}
103100
104- @ ScalaJSDefined
105101trait DeviceMotionEventInit extends js.Any {
106102
107103 /** Device acceleration with gravity removed. */
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ trait GamepadMappingType extends js.Any
1717/**
1818 * Represents the state of a button.
1919 */
20- @ ScalaJSDefined
2120trait GamepadButton extends js.Any {
2221
2322 /**
@@ -35,7 +34,6 @@ trait GamepadButton extends js.Any {
3534/**
3635 * Represents the state of a connected gamepad device.
3736 */
38- @ ScalaJSDefined
3937trait Gamepad extends js.Any {
4038
4139 /** The identification string for the gamepad. */
@@ -67,7 +65,6 @@ trait Gamepad extends js.Any {
6765 val mapping : GamepadMappingType
6866}
6967
70- @ ScalaJSDefined
7168trait GamepadEventInit extends js.Any {
7269 val gamepad : Gamepad
7370}
Original file line number Diff line number Diff line change @@ -326,7 +326,6 @@ trait MediaStreamTrack extends EventTarget {
326326 def stop (): Unit = js.native
327327}
328328
329- @ ScalaJSDefined
330329trait MediaTrackSettings extends js.Object {
331330 var width : js.UndefOr [Double ] = js.undefined
332331 var height : js.UndefOr [Double ] = js.undefined
@@ -633,7 +632,6 @@ trait MediaDevices extends EventTarget {
633632 *
634633 * MDN
635634 */
636- @ ScalaJSDefined
637635trait MediaTrackSupportedConstraints extends js.Object {
638636 var width : js.UndefOr [Boolean ] = js.undefined
639637 var height : js.UndefOr [Boolean ] = js.undefined
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ package object dom {
232232 lazy val XPathResult : raw.XPathResult .type = raw.XPathResult
233233 type XPathNSResolver = raw.XPathNSResolver
234234
235- lazy val window : Window = js.Dynamic .global.asInstanceOf [Window ]
235+ lazy val window : Window = js.Dynamic .global.window. asInstanceOf [Window ]
236236 lazy val document : html.Document = window.document
237237
238238 lazy val console : Console = window.console
You can’t perform that action at this time.
0 commit comments