зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1484275 - ESLint quick fix. r=me
This commit is contained in:
Родитель
866357cbca
Коммит
6ea78024ca
|
@ -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) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче