Skip to content
This repository
Browse code

release element if tip is invalid

  • Loading branch information...
commit f797b46aa8b4d55f1dd874ec680296ff3e1479c0 1 parent 95a2473
Jason Frame authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 src/javascripts/jquery.tipsy.js
6 src/javascripts/jquery.tipsy.js
@@ -101,7 +101,11 @@
101 101 },
102 102
103 103 validate: function() {
104   - if (!this.$element[0].parentNode) this.hide();
  104 + if (!this.$element[0].parentNode) {
  105 + this.hide();
  106 + this.$element = null;
  107 + this.options = null;
  108 + }
105 109 },
106 110
107 111 enable: function() { this.enabled = true; },

0 comments on commit f797b46

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