react-tooltip
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -67,2 +67,3 @@ 'use strict'; | ||
this._bind('showTooltip', 'updateTooltip', 'hideTooltip'); | ||
this.mount = true; | ||
this.state = { | ||
@@ -94,8 +95,12 @@ show: false, | ||
ReactTooltip.prototype.globalHide = function globalHide() { | ||
this.hideTooltip(); | ||
if (this.mount) { | ||
this.hideTooltip(); | ||
} | ||
}; | ||
ReactTooltip.prototype.globalRebuild = function globalRebuild() { | ||
this.unbindListener(); | ||
this.bindListener(); | ||
if (this.mount) { | ||
this.unbindListener(); | ||
this.bindListener(); | ||
} | ||
}; | ||
@@ -105,2 +110,3 @@ | ||
this.unbindListener(); | ||
this.mount = false; | ||
var tag = document.querySelector('style[id="react-tooltip"]'); | ||
@@ -107,0 +113,0 @@ document.getElementsByTagName('head')[0].removeChild(tag); |
{ | ||
"name": "react-tooltip", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "react tooltip component", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-tooltip.js", |
43371
574