Skip to content

Commit

Permalink
make the rootel data available to the content function
Browse files Browse the repository at this point in the history
  • Loading branch information
eikes committed Jul 28, 2011
1 parent 6c833cf commit 0919f0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tooltipsy.source.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 0919f0e

Please sign in to comment.