Bug 1484275 - ESLint quick fix. r=me

This commit is contained in:
Paolo Amadini 2018-08-24 08:39:47 +01:00
Родитель 866357cbca
Коммит 6ea78024ca
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -8,8 +8,8 @@ const TEST_URL = "data:text/html,<html><body></body></html>";
// This code can be consolidated in the EventUtils module (bug 1126772). // This code can be consolidated in the EventUtils module (bug 1126772).
const isWindows = AppConstants.platform == "win"; const isWindows = AppConstants.platform == "win";
const isMac = AppConstants.platform == "macosx"; const isMac = AppConstants.platform == "macosx";
const mouseDown = isWindows ? 2 : isMac ? 1 : 4; const mouseDown = isWindows ? 2 : isMac ? 1 : 4; // eslint-disable-line no-nested-ternary
const mouseUp = isWindows ? 4 : isMac ? 2 : 7; const mouseUp = isWindows ? 4 : isMac ? 2 : 7; // eslint-disable-line no-nested-ternary
const utils = window.windowUtils; const utils = window.windowUtils;
const scale = utils.screenPixelsPerCSSPixel; const scale = utils.screenPixelsPerCSSPixel;
function synthesizeNativeMouseClick(aElement) { function synthesizeNativeMouseClick(aElement) {