Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dont set as global variables

  • Loading branch information...
commit c6bbfc7d795197d92107fc34dcf8375bebb6ac9a 1 parent ea84c6e
@enriquez authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 jquery.ezpz_tooltip.js
View
8 jquery.ezpz_tooltip.js
@@ -8,10 +8,10 @@
var targetMousedOver = $(this).mouseover(function(){
settings.beforeShow(content, $(this));
}).mousemove(function(e){
- contentInfo = getElementDimensionsAndPosition(content);
- targetInfo = getElementDimensionsAndPosition($(this));
- contentInfo = $.fn.ezpz_tooltip.positions[settings.contentPosition](contentInfo, e.pageX, e.pageY, settings.offset, targetInfo);
- contentInfo = keepInWindow(contentInfo);
+ var contentInfo = getElementDimensionsAndPosition(content);
+ var targetInfo = getElementDimensionsAndPosition($(this));
+ var contentInfo = $.fn.ezpz_tooltip.positions[settings.contentPosition](contentInfo, e.pageX, e.pageY, settings.offset, targetInfo);
+ var contentInfo = keepInWindow(contentInfo);
content.css('top', contentInfo['top']);
content.css('left', contentInfo['left']);
Please sign in to comment.
Something went wrong with that request. Please try again.