diff options
author | Chris Rebert <code@rebertia.com> | 2015-01-04 09:43:38 +0300 |
---|---|---|
committer | Chris Rebert <code@rebertia.com> | 2015-01-10 00:11:30 +0300 |
commit | 0dd054229021ae258ed973ad77d52d8497272500 (patch) | |
tree | 42b87bd49c4ade4135eebf287ae0b79048ffd363 | |
parent | ead19f2517d55627186fb766dcf40935eae8434c (diff) |
we now depend on jQuery
-rw-r--r-- | Gruntfile.js | 3 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | src/browser/mq4-hover-hover-shim.js | 2 |
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: { @@ -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, |