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:
authorChris Rebert <code@rebertia.com>2015-01-04 09:43:38 +0300
committerChris Rebert <code@rebertia.com>2015-01-10 00:11:30 +0300
commit0dd054229021ae258ed973ad77d52d8497272500 (patch)
tree42b87bd49c4ade4135eebf287ae0b79048ffd363
parentead19f2517d55627186fb766dcf40935eae8434c (diff)
we now depend on jQuery
-rw-r--r--Gruntfile.js3
-rw-r--r--README.md4
-rw-r--r--src/browser/mq4-hover-hover-shim.js2
3 files changed, 8 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 3c2343a..9841a49 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -32,7 +32,8 @@ module.exports = function (grunt) {
options: {
banner: '<%= banner %>',
browserifyOptions: {
- standalone: 'mq4HoverShim'
+ standalone: 'mq4HoverShim',
+ bundleExternal: false
}
},
dist: {
diff --git a/README.md b/README.md
index 09dc745..a297b9e 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,10 @@ Obviously, this requires JavaScript to be enabled in the browser, and would defa
[hover-pseudo]: https://developer.mozilla.org/en-US/docs/Web/CSS/:hover
+## Client-side dependencies
+
+The browser-side portion of the shim depends on jQuery for firing events. Pull requests to add support for other browser event libraries would be welcomed.
+
## Browser compatibility
The following is a summary of the results of testing the library in various browsers. [Try out the Live Testcase](http://jsfiddle.net/cvrhulu/5vszkpmg/).
diff --git a/src/browser/mq4-hover-hover-shim.js b/src/browser/mq4-hover-hover-shim.js
index 654141d..e954f31 100644
--- a/src/browser/mq4-hover-hover-shim.js
+++ b/src/browser/mq4-hover-hover-shim.js
@@ -1,6 +1,8 @@
/*eslint-env browser */
/* jshint browser: true, esnext: true */
+import * as $ from 'jquery';
+
/**
* Does this UA's primary pointer support true hovering
* OR does the UA at least not try to quirkily emulate hovering,