Permalink
Browse files

dont set as global variables

  • Loading branch information...
1 parent ea84c6e commit c6bbfc7d795197d92107fc34dcf8375bebb6ac9a @enriquez committed Dec 20, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 jquery.ezpz_tooltip.js
View
@@ -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']);

0 comments on commit c6bbfc7

Please sign in to comment.