Skip to content
This repository
Browse code

Don't hide if the tooltip isn't ready.

I found that hide was being called-back before
show (and thus readify()). This protects against
this case.
  • Loading branch information...
commit f7d9c7f2d5712398bdc4ed06a9d71f88bd47202b 1 parent 983820d
Lachie Cox authored October 17, 2011

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  tooltipsy.source.js
4  tooltipsy.source.js
@@ -126,6 +126,10 @@
126 126
     $.tooltipsy.prototype.hide = function (e) {
127 127
         var base = this;
128 128
 
  129
+        if (base.ready === false) {
  130
+            return;
  131
+        }
  132
+
129 133
         if (e && e.relatedTarget === base.$tip[0]) {
130 134
             base.$tip.bind('mouseleave', function (e) {
131 135
                 if (e.relatedTarget === base.$el[0]) {

0 notes on commit f7d9c7f

Please sign in to comment.
Something went wrong with that request. Please try again.