Letractively / tooltips

Automatically exported from code.google.com/p/tooltips
0 stars 0 forks source link

hide function, parentNode is null #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. quickly move from on tooltip to another

The expected output is fine but the error console trigger a 'parentNode is
null' error

to fix that within the hide function (line ~64) 

Replace :

new Effect.Fade(this.tooltip, {duration: this.options.hideDuration,
afterFinish: function() { Element.remove(this.tooltip) }.bind(this) });

With :

new Effect.Fade(this.tooltip, {duration: this.options.hideDuration,
afterFinish: function() { if((Element != null) && (Element.parentNode !=
null)){ Element.remove(this.tooltip) } }.bind(this) });

Regards

p.s.: btw sorry for posting -unexpectedly- several time this issue. 

Original issue reported on code.google.com by antoin...@gmail.com on 14 Oct 2009 at 9:49

GoogleCodeExporter commented 8 years ago
ok my fix is crappy, the tooltips aren't deleted anymore

Original comment by sensi2...@gmail.com on 14 Oct 2009 at 1:47