diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3c3629e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules
diff --git a/bower.json b/bower.json
index 75f525e..cfc06a3 100644
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
{
"name": "jquery-hoverintent",
- "version": "1.8.1",
+ "version": "1.9.0",
"homepage": "http://briancherne.github.io/jquery-hoverIntent/",
"repository": {
"type": "git",
diff --git a/index.html b/index.html
index 4cb71d3..e33e430 100644
--- a/index.html
+++ b/index.html
@@ -173,7 +173,7 @@
Known Defects
Release History
- All newer releases
- - v1.9.0 = (2015) Refactored plugin to fix a long-standing bug that prevented multiple instances of the plugin to be active on the same element. Exports plugin as an AMD module so it can be used with AMD loaders. The
pageX
and pageY
properties of the event passed to the "over" handler now reflect current mouse position. Note that this may be a breaking change for some; if your "over" handler requires the unmodified coordinates from original mouseover, you can read them from the event.originalEvent
. Many other improvements and bug fixes.
+ - v1.9.0 = (2015, 2017) Refactored plugin to fix a long-standing bug that prevented multiple instances of the plugin to be active on the same element. Exports plugin as an AMD module so it can be used with AMD loaders. The
pageX
and pageY
properties of the event passed to the "over" handler now reflect current mouse position. Note that this may be a breaking change for some; if your "over" handler requires the unmodified coordinates from original mouseover, you can read them from the event.originalEvent
. Many other improvements and bug fixes.
- v1.8.1 = (2014) Minor update: fixes bower.json to indicate that the plugin works with all versions of jQuery >= 1.9.1.
- v1.8.0 = (2014) Changed to Semantic Versioning (from r8 to v1.8.0). Removed U+FEFF character from beginning of JS file. Removed stray "jQuery" in favor of "$" for noConflict situations. Changed measurements to use Euclidean (instead of rectilinear) distance. Thanks to the GitHub community for patches, suggestions, and fixes!
- r7 = (2013) Added event delegation via "selector" param/property. Added namespaced events for better isolation. Added handlerInOut support.
diff --git a/jquery.hoverIntent.js b/jquery.hoverIntent.js
index 5167de8..4d905fb 100644
--- a/jquery.hoverIntent.js
+++ b/jquery.hoverIntent.js
@@ -1,10 +1,10 @@
/*!
- * hoverIntent v1.8.1 // 2014.08.11 // jQuery v1.9.1+
+ * hoverIntent v1.9.0 // 2017.09.01 // jQuery v1.7.0+
* http://briancherne.github.io/jquery-hoverIntent/
*
* You may use hoverIntent under the terms of the MIT license. Basically that
* means you are free to use hoverIntent as long as this header is left intact.
- * Copyright 2007, 2014 Brian Cherne
+ * Copyright 2007-2017 Brian Cherne
*/
/* hoverIntent is similar to jQuery's built-in "hover" method except that
diff --git a/jquery.hoverIntent.min.js b/jquery.hoverIntent.min.js
new file mode 100644
index 0000000..ac51410
--- /dev/null
+++ b/jquery.hoverIntent.min.js
@@ -0,0 +1,9 @@
+/*!
+ * hoverIntent v1.9.0 // 2017.09.01 // jQuery v1.7.0+
+ * http://briancherne.github.io/jquery-hoverIntent/
+ *
+ * You may use hoverIntent under the terms of the MIT license. Basically that
+ * means you are free to use hoverIntent as long as this header is left intact.
+ * Copyright 2007-2017 Brian Cherne
+ */
+!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,track=function(ev){cX=ev.pageX,cY=ev.pageY},compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))",
+ "contributors": [
+ "usmonster (https://github.com/usmonster)"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/briancherne/jquery-hoverIntent.git"
+ },
+ "bugs": {
+ "url": "https://github.com/briancherne/jquery-hoverIntent/issues"
+ },
+ "dependencies": {
+ "jquery": ">=1.7.0"
+ },
+ "peerDependencies": {
+ "jquery": ">=1.7.0"
+ },
+ "devDependencies": {
+ "uglify-js": "^3.0.28"
+ },
+ "scripts": {
+ "build": "uglifyjs jquery.hoverIntent.js -c --comments '/^!/' -o jquery.hoverIntent.min.js",
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "license": "MIT"
+}