mozilla

Compare Revisions

DownloadList

Change Revisions

Revision 481997:

Revision 481997 by P.A. on

Revision 482037:

Revision 482037 by P.A. on

Title:
DownloadList
DownloadList
Slug:
Mozilla/JavaScript_code_modules/Downloads.jsm/DownloadList
Mozilla/JavaScript_code_modules/Downloads.jsm/DownloadList
Content:

Revision 481997
Revision 482037
nn41          </td>
42        </tr>
43        <tr>
44          <td>
45            <code>void <a href="#removeFinished()">removeFinished
 ></a>([optional] <a href="/en-US/docs/JavaScript/Reference/Global_
 >Objects/Function" title="/en-US/docs/JavaScript/Reference/Global_
 >Objects/Function">Function</a> aFilterFn);</code>
n183        <code>aView</code>n188        <code>aView</code> {{optional_inline()}}
nn200    <h3 id="removeFinished()">
201      removeFinished()
202    </h3>
203    <p>
204      Removes downloads from the list that have finished, have fa
 >iled, or have been canceled without keeping partial data. A filte
 >r function may be specified to remove only a subset of those down
 >loads.
205    </p>
206    <p>
207      This method finalizes each removed download, ensuring that 
 >any partially downloaded data associated with it is also removed.
208    </p>
209    <pre>
210Promise removeFinished(
211  Function aFilterFn
212);
213</pre>
214    <h6 id="Parameters">
215      Parameters
216    </h6>
217    <dl>
218      <dt>
219        <code>aFilterFn</code>
220      </dt>
221      <dd>
222        The filter function is called with each download as its o
 >nly argument, and should return <code>true</code> to remove the d
 >ownload and <code>false</code> to keep it. This parameter may be 
 ><code>null</code> or omitted to have no additional filter.
223      </dd>
224    </dl>
tt233    <div id="cke_pastebin" style="position: absolute; top: 312.66
 >7px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
234      &nbsp;
235    </div>

Back to History