Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/mq4-hover-shim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/browser/mq4-hover-shim.js7
-rw-r--r--dist/cjs/mq4-hover-shim.js7
2 files changed, 4 insertions, 10 deletions
diff --git a/dist/browser/mq4-hover-shim.js b/dist/browser/mq4-hover-shim.js
index b88d1fd..364af6e 100644
--- a/dist/browser/mq4-hover-shim.js
+++ b/dist/browser/mq4-hover-shim.js
@@ -10,9 +10,6 @@
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; };
-
-
-
/**
* Does this UA's primary pointer support true hovering
* OR does the UA at least not try to quirkily emulate hovering,
@@ -23,7 +20,7 @@ var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? ob
* @since 0.0.1
*/
exports.supportsTrueHover = supportsTrueHover;
-/*eslint-env browser */
+/*eslint-env browser, es6 */
/*eslint no-var:2*/
/* jshint browser: true, esnext: true */
/* jshint -W080 */
@@ -85,7 +82,7 @@ function triggerEvent() {
var HOVER_HOVER = "(hover: hover),(-moz-hover: hover),(-ms-hover: hover),(-webkit-hover: hover)";
if (window.matchMedia("" + HOVER_NONE + "," + HOVER_ON_DEMAND + "," + HOVER_HOVER).matches) {
// Browser understands the `hover` media feature
- var hoverCallback = function (mql) {
+ var hoverCallback = function hoverCallback(mql) {
var doesMatch = mql.matches;
if (doesMatch !== canTrulyHover) {
canTrulyHover = doesMatch;
diff --git a/dist/cjs/mq4-hover-shim.js b/dist/cjs/mq4-hover-shim.js
index 4ea9bfe..b8286c9 100644
--- a/dist/cjs/mq4-hover-shim.js
+++ b/dist/cjs/mq4-hover-shim.js
@@ -2,9 +2,6 @@
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; };
-
-
-
/**
* Does this UA's primary pointer support true hovering
* OR does the UA at least not try to quirkily emulate hovering,
@@ -15,7 +12,7 @@ var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? ob
* @since 0.0.1
*/
exports.supportsTrueHover = supportsTrueHover;
-/*eslint-env browser */
+/*eslint-env browser, es6 */
/*eslint no-var:2*/
/* jshint browser: true, esnext: true */
/* jshint -W080 */
@@ -77,7 +74,7 @@ function triggerEvent() {
var HOVER_HOVER = "(hover: hover),(-moz-hover: hover),(-ms-hover: hover),(-webkit-hover: hover)";
if (window.matchMedia("" + HOVER_NONE + "," + HOVER_ON_DEMAND + "," + HOVER_HOVER).matches) {
// Browser understands the `hover` media feature
- var hoverCallback = function (mql) {
+ var hoverCallback = function hoverCallback(mql) {
var doesMatch = mql.matches;
if (doesMatch !== canTrulyHover) {
canTrulyHover = doesMatch;