<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - classList.toggle(name, force) treats undefined `force` argument as false"
   href="https://bugs.webkit.org/show_bug.cgi?id=148582#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - classList.toggle(name, force) treats undefined `force` argument as false"
   href="https://bugs.webkit.org/show_bug.cgi?id=148582">bug 148582</a>
              from <span class="vcard"><a class="email" href="mailto:m.goleb+bugzilla&#64;gmail.com" title="Michał Gołębiowski &lt;m.goleb+bugzilla&#64;gmail.com&gt;"> <span class="fn">Michał Gołębiowski</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=148582#c2">comment #2</a>)
<span class="quote">&gt; I will try and address this in the near future.</span >

Great to hear that!

This is very useful when you need to proxy the method. I'm developing an experimental jQuery plugin that replaces its class manipulation code with one utilizing classList and I had to write something like:

if (force !== undefined) {
    this.classList.toggle(clazz, force);
} else {
    this.classList.toggle(clazz);
}

instead of just passing the value. This is the full source:
<a href="https://github.com/mzgol/jquery.classList/blob/3a7018254bf0545c54f6ff7d73eb21aadcfb8ec9/src/jquery.class_list.js#L108-L119">https://github.com/mzgol/jquery.classList/blob/3a7018254bf0545c54f6ff7d73eb21aadcfb8ec9/src/jquery.class_list.js#L108-L119</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>