Skip to content

Commit 95bd26f

Browse files
committed
oops; MediaQueryList is passed as argument; not a boolean
1 parent bed3a80 commit 95bd26f

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

cssom-view/Overview.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,8 @@ <h3 id=the-mediaquerylist-interface><span class=secno>3.1. </span>The <code
492492
listener in the <a href="#list-of-media-query-list-listeners">list of
493493
media query list listeners</a> &mdash; in appending order, <a
494494
href="#queue-a-task">queue a task</a> that invokes the listener, passing
495-
as argument whether the associated list of media queries matches the state
496-
of the rendered <a href="#document"><code>Document</code></a> at the time
497-
the <a href="#task">task</a> was <a href="#queue-a-task" title="queue a
498-
task">queued</a>.
495+
as argument the <a href="#mediaquerylist"><code>MediaQueryList</code></a>
496+
object.
499497

500498
<div class=example>
501499
<p>A simple piece of code that detects changes in the orientation of the
@@ -520,7 +518,7 @@ <h3 id=the-mediaquerylist-interface><span class=secno>3.1. </span>The <code
520518

521519
[Callback=FunctionOnly, NoInterfaceObject]
522520
interface <dfn id=mediaquerylistlistener>MediaQueryListListener</dfn> {
523-
void <span>handleChange</span>(boolean <var title="">matches</var>);
521+
void <span>handleChange</span>(<a href="#mediaquerylist">MediaQueryList</a> <var title="">mql</var>);
524522
};</pre>
525523

526524
<p>The <dfn id=dom-MediaQueryList-media

cssom-view/Overview.src.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,7 @@ <h3 id="the-mediaquerylist-interface">The <code title="">MediaQueryList</code> I
349349
<p>If the associated media query list changes in evaluation then, for each
350350
listener in the <span>list of media query list listeners</span> &mdash; in
351351
appending order, <span>queue a task</span> that invokes the listener,
352-
passing as argument whether the associated list of media queries matches
353-
the state of the rendered <code>Document</code> at the time the
354-
<span>task</span> was <span title="queue a task">queued</span>.</p>
352+
passing as argument the <code>MediaQueryList</code> object.</p>
355353

356354
<div class="example">
357355
<p>A simple piece of code that detects changes in the orientation of the
@@ -375,7 +373,7 @@ <h3 id="the-mediaquerylist-interface">The <code title="">MediaQueryList</code> I
375373

376374
[Callback=FunctionOnly, NoInterfaceObject]
377375
interface <dfn id="mediaquerylistlistener">MediaQueryListListener</dfn> {
378-
void <span>handleChange</span>(boolean <var title="">matches</var>);
376+
void <span>handleChange</span>(<span>MediaQueryList</span> <var title="">mql</var>);
379377
};</pre>
380378

381379
<p>The

0 commit comments

Comments
 (0)