Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug allowing title to show up on first hover

  • Loading branch information...
commit 1de133b57f5baba1c33a1982035e6ba93049427d 1 parent 7d4304a
@briancray authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tooltipsy.source.js
View
4 tooltipsy.source.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.