Skip to content

Commit

Permalink
Content setting is now passed and when set as function
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Cray committed Sep 29, 2011
1 parent 3babaf6 commit f06b6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tooltipsy.source.js
Expand Up @@ -139,7 +139,7 @@
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);
this.$tip.data('rootel', this.$el);
this.$tip.html(this.settings.content != '' ? (typeof this.settings.content == 'string' ? this.settings.content : this.settings.content(this.$el)) : this.title);
this.$tip.html(this.settings.content != '' ? (typeof this.settings.content == 'string' ? this.settings.content : this.settings.content(this.$el, this.$tip)) : this.title);
};

$.tooltipsy.prototype.offset = function (el) {
Expand Down

0 comments on commit f06b6f5

Please sign in to comment.