summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/downloads/DownloadsCommon.jsm
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/DownloadsCommon.jsm
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/DownloadsCommon.jsm')
-rw-r--r--application/palemoon/components/downloads/DownloadsCommon.jsm9
1 files changed, 3 insertions, 6 deletions
diff --git a/application/palemoon/components/downloads/DownloadsCommon.jsm b/application/palemoon/components/downloads/DownloadsCommon.jsm
index e110aa904..652d2433b 100644
--- a/application/palemoon/components/downloads/DownloadsCommon.jsm
+++ b/application/palemoon/components/downloads/DownloadsCommon.jsm
@@ -413,8 +413,7 @@ this.DownloadsCommon = {
* complete.
* percentComplete : The percentage of bytes successfully downloaded.
*/
-summarizeDownloads(downloads) {
- {
+ summarizeDownloads(downloads) {
let summary = {
numActive: 0,
numPaused: 0,
@@ -1480,7 +1479,6 @@ const DownloadsViewPrototype = {
* @note Subclasses should override this.
*/
onDownloadChanged(download) {
- {
throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
},
@@ -1574,7 +1572,6 @@ DownloadsIndicatorDataCtor.prototype = {
},
onDownloadAdded(download, newest) {
- {
this._itemCount++;
this._updateViews();
},
@@ -1691,7 +1688,7 @@ DownloadsIndicatorDataCtor.prototype = {
* to generate statistics about the downloads we care about - in this case,
* it's all active downloads.
*/
- _activeDownloads() {
+ _activeDownloads: function* () {
let downloads = this._isPrivate ? PrivateDownloadsData.downloads
: DownloadsData.downloads;
for (let download of downloads) {
@@ -1897,7 +1894,7 @@ DownloadsSummaryData.prototype = {
* it's the downloads in this._downloads after the first few to exclude,
* which was set when constructing this DownloadsSummaryData instance.
*/
- _downloadsForSummary() {
+ _downloadsForSummary: function* () {
if (this._downloads.length > 0) {
for (let i = this._numToExclude; i < this._downloads.length; ++i) {
yield this._downloads[i];