Skip to content

Commit

Permalink
Hovered element accessible through .data('rootel')
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Cray committed May 16, 2011
1 parent c89ee03 commit b448e53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tooltipsy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion tooltipsy.source.js
Expand Up @@ -108,7 +108,9 @@
base.title = base.$el.attr('title') || '';
base.$el.attr('title', '');
base.$tipsy = $('<div id="tooltipsy' + base.random + '">').appendTo('body').css({position: 'absolute', zIndex: '999'}).hide();
base.$tip = $('<div class="' + base.settings.className + '">').appendTo(base.$tipsy).html(base.settings.content != '' ? base.settings.content : base.title);
base.$tip = $('<div class="' + base.settings.className + '">').appendTo(base.$tipsy);
base.$tip.data('rootel', base.$el);
base.$tip.html(base.settings.content != '' ? base.settings.content : base.title);
};

base.init();
Expand Down

0 comments on commit b448e53

Please sign in to comment.