enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

setContent create new instance of toolTip and keep previous toolTips #130

Open asimjabbar2005 opened 9 years ago

asimjabbar2005 commented 9 years ago

I am trying to update the content of a toolTip using setContent method. but somehow it creates new instance of toolTip and keep the previous toolTips along with its contents.

Any help would be appreciated Thanks

Here is the code

var myOpentip = new Opentip($(toolTipHolder), { cache: false, fixed: true }); myOpentip.setContent(v.helpText);

here is the screenshot of toolTip

tooltip pic