mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
[PALEMOON] Bug 1117141 - Part 2 of 2 - Refactor notifications and remove the DownloadsDataItem object
This commit is contained in:
parent
5705b9b36a
commit
63e8a36496
4 changed files with 234 additions and 593 deletions
|
|
@ -45,7 +45,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
|||
* from the JavaScript API for downloads, and commands are executed using a
|
||||
* combination of Download methods and DownloadsCommon.jsm helper functions.
|
||||
*
|
||||
* Specialized versions of this shell must be defined, currently they are the
|
||||
* Specialized versions of this shell must be defined, and they are required to
|
||||
* implement the "download" property or getter. Currently these objects are the
|
||||
* HistoryDownloadElementShell and the DownloadsViewItem for the panel. The
|
||||
* history view may use a HistoryDownload object in place of a Download object.
|
||||
*/
|
||||
|
|
@ -57,17 +58,6 @@ DownloadElementShell.prototype = {
|
|||
*/
|
||||
element: null,
|
||||
|
||||
/**
|
||||
* The DownloadsDataItem for the download, overridden by the derived object.
|
||||
*/
|
||||
dataItem: null,
|
||||
|
||||
/**
|
||||
* Download or HistoryDownload object to use for displaying information and
|
||||
* for executing commands in the user interface.
|
||||
*/
|
||||
get download() this.dataItem.download,
|
||||
|
||||
/**
|
||||
* URI string for the file type icon displayed in the download element.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue