Permalink
Browse files

Small fix to content setting as function

  • Loading branch information...
Brian Cray
Brian Cray committed Sep 29, 2011
1 parent deb56a9 commit b50c4b3b89fe2fd7bc6f409c0852da5417ab8e7a
Showing with 4 additions and 2 deletions.
  1. +1 −1 tooltipsy.min.js
  2. +3 −1 tooltipsy.source.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -139,7 +139,9 @@
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.$tip)) : this.title);
+ var e = this.$el;
+ var t = this.$tip;
+ this.$tip.html(this.settings.content != '' ? (typeof this.settings.content == 'string' ? this.settings.content : this.settings.content(e, t)) : this.title);
};
$.tooltipsy.prototype.offset = function (el) {

0 comments on commit b50c4b3

Please sign in to comment.