mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 15:16:50 +00:00
Merge "eslint: Enforce no-var"
This commit is contained in:
commit
a5c01f6813
|
@ -1,7 +1,4 @@
|
||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": "wikimedia/language/es6",
|
"extends": "wikimedia/language/es6"
|
||||||
"rules": {
|
|
||||||
"no-var": "off"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
var types = require( './types.json' );
|
const types = require( './types.json' );
|
||||||
// Load Popups when touch events are not available in the browser (e.g. not a mobile device).
|
// Load Popups when touch events are not available in the browser (e.g. not a mobile device).
|
||||||
var isTouchDevice = 'ontouchstart' in document.documentElement;
|
const isTouchDevice = 'ontouchstart' in document.documentElement;
|
||||||
var supportNotQueries;
|
let supportNotQueries;
|
||||||
try {
|
try {
|
||||||
supportNotQueries = document.body.matches( 'div:not(.foo,.bar)' );
|
supportNotQueries = document.body.matches( 'div:not(.foo,.bar)' );
|
||||||
supportNotQueries = true;
|
supportNotQueries = true;
|
||||||
|
|
Loading…
Reference in a new issue