mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 01:17:34 +09:00
[PALEMOON] Fix for loops in DownloadsCommon.jsm and WindowsPreviewPerTab.jsm
(SyntaxError: missing ] after element list)
This commit is contained in:
parent
47e1dee242
commit
1344bfe691
2 changed files with 21 additions and 4 deletions
|
|
@ -867,9 +867,19 @@ DownloadsDataCtor.prototype = {
|
|||
|
||||
// Sort backwards by start time, ensuring that the most recent
|
||||
// downloads are added first regardless of their state.
|
||||
let loadedItemsArray = [dataItem
|
||||
for each (dataItem in this.dataItems)
|
||||
if (dataItem)];
|
||||
// Tycho:
|
||||
//let loadedItemsArray = [dataItem
|
||||
// for each (dataItem in this.dataItems)
|
||||
// if (dataItem)];
|
||||
|
||||
let loadedItemsArray = [];
|
||||
|
||||
for each (let dataItem in this.dataItems) {
|
||||
if (dataItem) {
|
||||
loadedItemsArray.push(dataItem);
|
||||
}
|
||||
}
|
||||
|
||||
loadedItemsArray.sort(function(a, b) b.startTime - a.startTime);
|
||||
loadedItemsArray.forEach(
|
||||
function (dataItem) aView.onDataItemAdded(dataItem, false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue