Roo/bootstrap/Tooltip.js
authorAlan Knowles <alan@roojs.com>
Wed, 22 Apr 2015 03:50:33 +0000 (11:50 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 22 Apr 2015 03:50:33 +0000 (11:50 +0800)
Roo/bootstrap/Tooltip.js

index 60c470b..8b3c304 100644 (file)
@@ -49,13 +49,14 @@ Roo.apply(Roo.bootstrap.Tooltip, {
         if (this.currentEl == el) {
             return;
         }
-        if (this.currentTip) {
-            this.currentTip.hide();
-        }
-        if (el.dom != this.currentEl.dom && this.currentEl.contains(el.dom)) {
+        
+        if (this.currentEl && el.dom != this.currentEl.dom && this.currentEl.contains(el.dom)) {
             return;
         }
-            
+        
+        if (this.currentTip) {
+            this.currentTip.hide();
+        }    
         //Roo.log(el);
         if (!el.attr('tooltip')) { // parents who have tip?
             return;