diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-29 11:41:22 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-29 11:41:22 +0200 |
commit | d6c976bf65e309d298c250d7466b2cb0e523d088 (patch) | |
tree | 213d81f6a38a4a95970bef62fffb03ca7766da54 /application/palemoon/components/downloads/content/downloadsViewCommon.js | |
parent | 462332eee018e24d88255c708fa8acb67a717673 (diff) | |
download | UXP-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.js | 14 |
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() { |