mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-07 15:57:31 +09:00
Fix typos
This commit is contained in:
parent
63e8a36496
commit
ad8a1e1f50
4 changed files with 10 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue