File tree 1 file changed +3
-3
lines changed
dom/src/main/scala/org/scalajs/dom
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ trait MediaQueryList extends EventTarget {
18
18
def matches : Boolean = js.native
19
19
20
20
/** A string representing a serialized media query. */
21
- var media : String = js.native
21
+ def media : String = js.native
22
22
23
23
/** Adds to the MediaQueryList a callback which is invoked whenever the media query status—whether or not the document
24
24
* matches the media queries in the list—changes.
@@ -27,7 +27,7 @@ trait MediaQueryList extends EventTarget {
27
27
* watch for the change event.
28
28
* @deprecated
29
29
*/
30
- @ deprecated(" Use addEventListener() instead" , " 2.3 .0" )
30
+ @ deprecated(" Use addEventListener() instead" , " 2.4 .0" )
31
31
def addListener (listener : MediaQueryListListener ): Unit = js.native
32
32
33
33
/** Removes the specified listener callback from the callbacks to be invoked when the MediaQueryList changes media
@@ -38,6 +38,6 @@ trait MediaQueryList extends EventTarget {
38
38
* to remove change notification callbacks (which should have previously been added using addEventListener()).
39
39
* @deprecated
40
40
*/
41
- @ deprecated(" Use removeEventListener() instead" , " 2.3 .0" )
41
+ @ deprecated(" Use removeEventListener() instead" , " 2.4 .0" )
42
42
def removeListener (listener : MediaQueryListListener ): Unit = js.native
43
43
}
You can’t perform that action at this time.
0 commit comments