Permalink
Browse files

Fixed bug allowing title to show up on first hover

  • Loading branch information...
1 parent 7d4304a commit 1de133b57f5baba1c33a1982035e6ba93049427d Brian Cray committed Jun 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tooltipsy.source.js
View
@@ -15,6 +15,8 @@
$.tooltipsy = function (el, options) {
this.options = options;
this.$el = $(el);
+ this.title = this.$el.attr('title') || '';
+ this.$el.attr('title', '');
this.random = parseInt(Math.random()*10000);
this.ready = false;
this.shown = false;
@@ -107,8 +109,6 @@
$.tooltipsy.prototype.readify = function () {
this.ready = true;
- this.title = this.$el.attr('title') || '';
- this.$el.attr('title', '');
this.$tipsy = $('<div id="tooltipsy' + this.random + '">').appendTo('body').css({position: 'absolute', zIndex: '999'}).hide();
this.$tip = $('<div class="' + this.settings.className + '">').appendTo(this.$tipsy);
this.$tip.data('rootel', this.$el);

0 comments on commit 1de133b

Please sign in to comment.