| Index: lib/downloader.js |
| =================================================================== |
| --- a/lib/downloader.js |
| +++ b/lib/downloader.js |
| @@ -115,17 +115,17 @@ Downloader.prototype = |
| onDownloadError: null, |
| /** |
| * Checks whether anything needs downloading. |
| */ |
| _doCheck: function() |
| { |
| let now = Date.now(); |
| - for each (let downloadable in this.dataSource()) |
| + for (let downloadable of this.dataSource()) |
| { |
| if (downloadable.lastCheck && now - downloadable.lastCheck > this.maxAbsenceInterval) |
| { |
| // No checks for a long time interval - user must have been offline, e.g. |
| // during a weekend. Increase soft expiration to prevent load peaks on the |
| // server. |
| downloadable.softExpiration += now - downloadable.lastCheck; |
| } |