24th July, 16:48
I have necessity to destroy a certain tooltip on hide.
To solve it, I use:
onHide: function()
{
$('#selector1, #selector2').qtip("destroy");
}
My problem is that after destroying a tooltip this is no longer available!
Trying to solve this problem I use prerender: false. Setting this attribute false, the tooltips will recreate in the future when necessary (am I doing wrong?).
But it does't work... result: my tooltip are destroyed for ever. Why qTip behaves in this way? I've setted prerender to false correctly.
I have real necessity to destroy tooltip because I'm using more #selectors associated to a tooltip (as you see: $('#selector1, #selector2, etc...').qtip [...] ). So I would free memory - after the tooltip is hidden - to avoid interferences.
What am I doing wrong?
Thanks for replies
To solve it, I use:
onHide: function()
{
$('#selector1, #selector2').qtip("destroy");
}
My problem is that after destroying a tooltip this is no longer available!
Trying to solve this problem I use prerender: false. Setting this attribute false, the tooltips will recreate in the future when necessary (am I doing wrong?).
But it does't work... result: my tooltip are destroyed for ever. Why qTip behaves in this way? I've setted prerender to false correctly.
I have real necessity to destroy tooltip because I'm using more #selectors associated to a tooltip (as you see: $('#selector1, #selector2, etc...').qtip [...] ). So I would free memory - after the tooltip is hidden - to avoid interferences.
What am I doing wrong?
Thanks for replies
