summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/downloads/content
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-29 12:29:40 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-29 12:29:40 +0200
commit761b6eb255109a07d7cbcaaef6891cb14c961dbc (patch)
tree4e284b19b8ca665f6c62975f73434b60b1d78e80 /application/palemoon/components/downloads/content
parentd6c976bf65e309d298c250d7466b2cb0e523d088 (diff)
downloadUXP-761b6eb255109a07d7cbcaaef6891cb14c961dbc.tar
UXP-761b6eb255109a07d7cbcaaef6891cb14c961dbc.tar.gz
UXP-761b6eb255109a07d7cbcaaef6891cb14c961dbc.tar.lz
UXP-761b6eb255109a07d7cbcaaef6891cb14c961dbc.tar.xz
UXP-761b6eb255109a07d7cbcaaef6891cb14c961dbc.zip
Fix typos
Diffstat (limited to 'application/palemoon/components/downloads/content')
-rw-r--r--application/palemoon/components/downloads/content/allDownloadsViewOverlay.js4
-rw-r--r--application/palemoon/components/downloads/content/downloads.js2
-rw-r--r--application/palemoon/components/downloads/content/downloadsViewCommon.js10
3 files changed, 7 insertions, 9 deletions
diff --git a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
index a895bd9f6..a5cbb3a5f 100644
--- a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
+++ b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
@@ -251,8 +251,9 @@ HistoryDownloadElementShell.prototype = {
if (this.element.selected) {
goUpdateDownloadCommands();
- else
+ } else {
goUpdateCommand("downloadsCmd_clearDownloads");
+ }
},
onChanged() {
@@ -720,7 +721,6 @@ DownloadsPlacesView.prototype = {
// the top of the richlistbox, along with other session downloads.
// More generally, if a new download is added, should be made visible.
this._richlistbox.ensureElementIsVisible(newOrUpdatedShell.element);
- }
} else if (sessionDownload) {
let before = this._lastSessionDownloadElement ?
this._lastSessionDownloadElement.nextSibling : this._richlistbox.firstChild;
diff --git a/application/palemoon/components/downloads/content/downloads.js b/application/palemoon/components/downloads/content/downloads.js
index 9a6aa97e9..01682d325 100644
--- a/application/palemoon/components/downloads/content/downloads.js
+++ b/application/palemoon/components/downloads/content/downloads.js
@@ -807,7 +807,6 @@ const DownloadsView = {
* asynchronous data load.
*/
onDownloadAdded(download, aNewest) {
- {
DownloadsCommon.log("A new download data item was added - aNewest =",
aNewest);
@@ -911,7 +910,6 @@ const DownloadsView = {
* Removes the view item associated with the specified data item.
*/
_removeViewItem(download) {
- {
DownloadsCommon.log("Removing a DownloadsViewItem from the downloads list.");
let element = this._visibleViewItems.get(download).element;
let previousSelectedIndex = this.richListBox.selectedIndex;
diff --git a/application/palemoon/components/downloads/content/downloadsViewCommon.js b/application/palemoon/components/downloads/content/downloadsViewCommon.js
index 9ef492764..999d82317 100644
--- a/application/palemoon/components/downloads/content/downloadsViewCommon.js
+++ b/application/palemoon/components/downloads/content/downloadsViewCommon.js
@@ -12,7 +12,7 @@
"use strict";
-let { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
+var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
@@ -91,16 +91,16 @@ DownloadElementShell.prototype = {
get extendedDisplayName() {
let s = DownloadsCommon.strings;
- let referrer = this.dataItem.download.source.referrer ||
- this.dataItem.download.source.url;
+ let referrer = this.download.source.referrer ||
+ this.download.source.url;
let [displayHost, fullHost] = DownloadUtils.getURIHost(referrer);
return s.statusSeparator(this.displayName, displayHost);
},
get extendedDisplayNameTip() {
let s = DownloadsCommon.strings;
- let referrer = this.dataItem.download.source.referrer ||
- this.dataItem.download.source.url;
+ let referrer = this.download.source.referrer ||
+ this.download.source.url;
let [displayHost, fullHost] = DownloadUtils.getURIHost(referrer);
return s.statusSeparator(this.displayName, fullHost);
},