Permalink
Browse files

OverText now stops polling when elements are hidden (when polling is …

…enabled).
  • Loading branch information...
anutron committed May 13, 2009
1 parent 0c55347 commit 081270aae188ee7ed0b4f7d8f9f35b141015fb85
Showing with 3 additions and 5 deletions.
  1. +3 −5 Source/Forms/OverText.js
View
@@ -134,11 +134,9 @@ var OverText = new Class({
},
reposition: function(){
try {
this.assert();
if (!this.element.getParent() || !this.element.offsetHeight) return this.hide();
if (this.test()) this.text.position($merge(this.options.positionOptions, {relativeTo: this.element}));
} catch(e){ }
this.assert();
if (!this.element.getParent() || !this.element.offsetHeight) return this.stopPolling().hide();
if (this.test()) this.text.position($merge(this.options.positionOptions, {relativeTo: this.element}));
return this;
}

0 comments on commit 081270a

Please sign in to comment.