Skip to content

Commit

Permalink
Correctly update panel in Firefox 38.0a1+
Browse files Browse the repository at this point in the history
(#36)
  • Loading branch information
Infocatcher committed Feb 27, 2015
1 parent 503bc7b commit 094a977
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bootstrap.js
Expand Up @@ -243,8 +243,12 @@ var dpTweaker = {
DownloadsPanel.terminate();
DownloadsView.richListBox.textContent = "";
// We can't use {} and [] here because of memory leaks!
DownloadsView._viewItems = new window.Object();
DownloadsView._dataItems = new window.Array();
if("_downloads" in DownloadsView) // Firefox 38+
DownloadsView._downloads = new window.Array();
else {
DownloadsView._viewItems = new window.Object();
DownloadsView._dataItems = new window.Array();
}
}
DownloadsPanel.initialize(function() {});
}
Expand Down

0 comments on commit 094a977

Please sign in to comment.