Removing bootstrap tooltips along with removed elements


#1

hey, does anyone have a working pattern for removing tooltips over elements which are dynamically removed from DOM?

for example,

<template name="temp">
{{#if someCondition}}
<a title="some tooltip">foo</a>
{{/if
</template>

Template.temp.rendered = function() { this.$('[title]').tooltip(); }

once someCondition == false, the element is removed but the tooltip is unaware of it and therefore forever stains the screen

any ideas?