Skip to content

Commit

Permalink
OverText now stops polling when elements are hidden (when polling is …
Browse files Browse the repository at this point in the history
…enabled).
  • Loading branch information
anutron committed May 13, 2009
1 parent 0c55347 commit 081270a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Source/Forms/OverText.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 081270a

Please sign in to comment.