Skip to content

Commit 50f1135

Browse files
committed
Merge pull request #2 from nschonni/patch-1
Fix header scope
2 parents 1855ef4 + 707e6ef commit 50f1135

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

jquery.hoverIntent.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
/**
2-
* hoverIntent is similar to jQuery's built-in "hover" method except that
3-
* instead of firing the handlerIn function immediately, hoverIntent checks
4-
* to see if the user's mouse has slowed down (beneath the sensitivity
5-
* threshold) before firing the event. The handlerOut function is only
6-
* called after a matching handlerIn.
7-
*
1+
/*!
82
* hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+
93
* http://cherne.net/brian/resources/jquery.hoverIntent.html
104
*
115
* You may use hoverIntent under the terms of the MIT license. Basically that
126
* means you are free to use hoverIntent as long as this header is left intact.
137
* Copyright 2007, 2013 Brian Cherne
8+
*/
9+
10+
/* hoverIntent is similar to jQuery's built-in "hover" method except that
11+
* instead of firing the handlerIn function immediately, hoverIntent checks
12+
* to see if the user's mouse has slowed down (beneath the sensitivity
13+
* threshold) before firing the event. The handlerOut function is only
14+
* called after a matching handlerIn.
1415
*
1516
* // basic usage ... just like .hover()
1617
* .hoverIntent( handlerIn, handlerOut )
@@ -27,7 +28,7 @@
2728
* @param handlerOut function OR selector for delegation OR undefined
2829
* @param selector selector OR undefined
2930
* @author Brian Cherne <brian(at)cherne(dot)net>
30-
**/
31+
*/
3132
(function($) {
3233
$.fn.hoverIntent = function(handlerIn,handlerOut,selector) {
3334

@@ -111,4 +112,4 @@
111112
// listen for mouseenter and mouseleave
112113
return this.on({'mouseenter.hoverIntent':handleHover,'mouseleave.hoverIntent':handleHover}, cfg.selector);
113114
};
114-
})(jQuery);
115+
})(jQuery);

0 commit comments

Comments
 (0)