Skip to content

Commit

Permalink
Merge pull request #2 from nschonni/patch-1
Browse files Browse the repository at this point in the history
Fix header scope
  • Loading branch information
briancherne committed Mar 14, 2013
2 parents 1855ef4 + 707e6ef commit 50f1135
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions jquery.hoverIntent.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
/**
* hoverIntent is similar to jQuery's built-in "hover" method except that
* instead of firing the handlerIn function immediately, hoverIntent checks
* to see if the user's mouse has slowed down (beneath the sensitivity
* threshold) before firing the event. The handlerOut function is only
* called after a matching handlerIn.
*
/*!
* hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+
* http://cherne.net/brian/resources/jquery.hoverIntent.html
*
* 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, 2013 Brian Cherne
*/

/* hoverIntent is similar to jQuery's built-in "hover" method except that
* instead of firing the handlerIn function immediately, hoverIntent checks
* to see if the user's mouse has slowed down (beneath the sensitivity
* threshold) before firing the event. The handlerOut function is only
* called after a matching handlerIn.
*
* // basic usage ... just like .hover()
* .hoverIntent( handlerIn, handlerOut )
Expand All @@ -27,7 +28,7 @@
* @param handlerOut function OR selector for delegation OR undefined
* @param selector selector OR undefined
* @author Brian Cherne <brian(at)cherne(dot)net>
**/
*/
(function($) {
$.fn.hoverIntent = function(handlerIn,handlerOut,selector) {

Expand Down Expand Up @@ -111,4 +112,4 @@
// listen for mouseenter and mouseleave
return this.on({'mouseenter.hoverIntent':handleHover,'mouseleave.hoverIntent':handleHover}, cfg.selector);
};
})(jQuery);
})(jQuery);

0 comments on commit 50f1135

Please sign in to comment.