Browse files

make the rootel data available to the content function

  • Loading branch information...
1 parent 6c833cf commit 0919f0ef84bb78bf7dd0e5e7e25b0753c1cec13e @eikes eikes committed Jul 28, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 tooltipsy.source.js
View
3 tooltipsy.source.js
@@ -135,8 +135,9 @@
$.tooltipsy.prototype.readify = function () {
this.ready = true;
this.$tipsy = $('<div id="tooltipsy' + this.random + '" style="position:absolute;z-index:2147483647;display:none">').appendTo('body');
- this.$tip = $('<div class="' + this.settings.className + '">').appendTo(this.$tipsy).html(this.settings.content != '' ? this.settings.content : this.title);
+ this.$tip = $('<div class="' + this.settings.className + '">').appendTo(this.$tipsy);
this.$tip.data('rootel', this.$el);
+ this.$tip.html(this.settings.content != '' ? this.settings.content(this.$el) : this.title);
};
$.tooltipsy.prototype.offset = function (el) {

0 comments on commit 0919f0e

Please sign in to comment.