Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
This commit is contained in:
@@ -895,7 +895,7 @@ Object.setPrototypeOf(
|
||||
);
|
||||
|
||||
for (let methodName of ["load", "applyFilter", "selectNode", "selectItems"]) {
|
||||
DownloadsPlacesView.prototype[methodName] = function() {
|
||||
DownloadsPlacesView.prototype[methodName] = function () {
|
||||
throw new Error(
|
||||
"|" + methodName + "| is not implemented by the downloads view."
|
||||
);
|
||||
@@ -914,21 +914,21 @@ function goUpdateDownloadCommands() {
|
||||
updateCommandsForObject(HistoryDownloadElementShell.prototype);
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
let richListBox = document.getElementById("downloadsListBox");
|
||||
richListBox.addEventListener("scroll", function(event) {
|
||||
richListBox.addEventListener("scroll", function (event) {
|
||||
return this._placesView.onScroll();
|
||||
});
|
||||
richListBox.addEventListener("keypress", function(event) {
|
||||
richListBox.addEventListener("keypress", function (event) {
|
||||
return this._placesView.onKeyPress(event);
|
||||
});
|
||||
richListBox.addEventListener("dblclick", function(event) {
|
||||
richListBox.addEventListener("dblclick", function (event) {
|
||||
return this._placesView.onDoubleClick(event);
|
||||
});
|
||||
richListBox.addEventListener("contextmenu", function(event) {
|
||||
richListBox.addEventListener("contextmenu", function (event) {
|
||||
return this._placesView.onContextMenu(event);
|
||||
});
|
||||
richListBox.addEventListener("dragstart", function(event) {
|
||||
richListBox.addEventListener("dragstart", function (event) {
|
||||
this._placesView.onDragStart(event);
|
||||
});
|
||||
let dropNode = richListBox;
|
||||
@@ -938,13 +938,13 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
if (document.documentElement.id == "contentAreaDownloadsView") {
|
||||
dropNode = richListBox.parentNode;
|
||||
}
|
||||
dropNode.addEventListener("dragover", function(event) {
|
||||
dropNode.addEventListener("dragover", function (event) {
|
||||
richListBox._placesView.onDragOver(event);
|
||||
});
|
||||
dropNode.addEventListener("drop", function(event) {
|
||||
dropNode.addEventListener("drop", function (event) {
|
||||
richListBox._placesView.onDrop(event);
|
||||
});
|
||||
richListBox.addEventListener("select", function(event) {
|
||||
richListBox.addEventListener("select", function (event) {
|
||||
this._placesView.onSelect();
|
||||
});
|
||||
richListBox.addEventListener("focus", goUpdateDownloadCommands);
|
||||
|
||||
@@ -45,6 +45,6 @@ var ContentAreaDownloadsView = {
|
||||
},
|
||||
};
|
||||
|
||||
window.onload = function() {
|
||||
window.onload = function () {
|
||||
ContentAreaDownloadsView.init();
|
||||
};
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
/* import-globals-from allDownloadsView.js */
|
||||
/* import-globals-from /toolkit/content/globalOverlay.js */
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
let downloadCommands = document.getElementById("downloadCommands");
|
||||
downloadCommands.addEventListener("commandupdate", function() {
|
||||
downloadCommands.addEventListener("commandupdate", function () {
|
||||
goUpdateDownloadCommands();
|
||||
});
|
||||
downloadCommands.addEventListener("command", function(event) {
|
||||
downloadCommands.addEventListener("command", function (event) {
|
||||
let { id } = event.target;
|
||||
goDoCommand(id);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user