@@ -8,8 +8,8 @@ package org.scalajs.dom
8
8
9
9
import scala .scalajs .js
10
10
11
- /** A MediaQueryList object stores information on a media query applied to a document,
12
- * with support for both immediate and event-driven matching against the state of the document.
11
+ /** A MediaQueryList object stores information on a media query applied to a document, with support for both immediate
12
+ * and event-driven matching against the state of the document.
13
13
*/
14
14
@ js.native
15
15
trait MediaQueryList extends EventTarget {
@@ -20,25 +20,24 @@ trait MediaQueryList extends EventTarget {
20
20
/** A string representing a serialized media query. */
21
21
var media : String = js.native
22
22
23
- /** Adds to the MediaQueryList a callback which is invoked whenever the media query status—whether or
24
- * not the document matches the media queries in the list—changes.
23
+ /** Adds to the MediaQueryList a callback which is invoked whenever the media query status—whether or not the document
24
+ * matches the media queries in the list—changes.
25
25
*
26
- * This method exists primarily for backward compatibility;
27
- * if possible, you should instead use addEventListener() to watch for the change event.
26
+ * This method exists primarily for backward compatibility; if possible, you should instead use addEventListener() to
27
+ * watch for the change event.
28
28
* @deprecated
29
29
*/
30
- @ deprecated(" Use addEventListener() instead" )
30
+ @ deprecated(" Use addEventListener() instead" , " 2.3.0 " )
31
31
def addListener (listener : MediaQueryListListener ): Unit = js.native
32
32
33
- /** Removes the specified listener callback from the callbacks to be invoked when the MediaQueryList
34
- * changes media query status, which happens any time the document switches between matching and
35
- * not matching the media queries listed in the MediaQueryList.
33
+ /** Removes the specified listener callback from the callbacks to be invoked when the MediaQueryList changes media
34
+ * query status, which happens any time the document switches between matching and not matching the media queries
35
+ * listed in the MediaQueryList.
36
36
*
37
- * This method has been kept for backward compatibility;
38
- * if possible, you should generally use removeEventListener() to remove change notification callbacks
39
- * (which should have previously been added using addEventListener()).
37
+ * This method has been kept for backward compatibility; if possible, you should generally use removeEventListener()
38
+ * to remove change notification callbacks (which should have previously been added using addEventListener()).
40
39
* @deprecated
41
40
*/
42
- @ deprecated(" Use removeEventListener() instead" )
41
+ @ deprecated(" Use removeEventListener() instead" , " 2.3.0 " )
43
42
def removeListener (listener : MediaQueryListListener ): Unit = js.native
44
43
}
0 commit comments