summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/downloads/content/downloadsViewCommon.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-29 11:41:22 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-29 11:41:22 +0200
commitd6c976bf65e309d298c250d7466b2cb0e523d088 (patch)
tree213d81f6a38a4a95970bef62fffb03ca7766da54 /application/palemoon/components/downloads/content/downloadsViewCommon.js
parent462332eee018e24d88255c708fa8acb67a717673 (diff)
downloadUXP-d6c976bf65e309d298c250d7466b2cb0e523d088.tar
UXP-d6c976bf65e309d298c250d7466b2cb0e523d088.tar.gz
UXP-d6c976bf65e309d298c250d7466b2cb0e523d088.tar.lz
UXP-d6c976bf65e309d298c250d7466b2cb0e523d088.tar.xz
UXP-d6c976bf65e309d298c250d7466b2cb0e523d088.zip
[PALEMOON] Bug 1117141 - Part 2 of 2 - Refactor notifications and remove the DownloadsDataItem object
Diffstat (limited to 'application/palemoon/components/downloads/content/downloadsViewCommon.js')
-rw-r--r--application/palemoon/components/downloads/content/downloadsViewCommon.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/application/palemoon/components/downloads/content/downloadsViewCommon.js b/application/palemoon/components/downloads/content/downloadsViewCommon.js
index 7d18eadc6..9ef492764 100644
--- a/application/palemoon/components/downloads/content/downloadsViewCommon.js
+++ b/application/palemoon/components/downloads/content/downloadsViewCommon.js
@@ -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.
*/
@@ -58,17 +59,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.
*/
get image() {