Skip to content

Commit

Permalink
Merge pull request aptible#63 from gib/bs-tooltip
Browse files Browse the repository at this point in the history
Ensure BS Tooltips are destroyed with the component
  • Loading branch information
skylar-anderson committed Oct 24, 2015
2 parents e889602 + 7c0eb48 commit 2ce1e51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/bs-tooltip/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@ export default Ember.Component.extend(BootstrapComponentOptions, {
if(options.trigger === 'immediate') {
tooltip.tooltip('show');
}
}),

teardownTooltip: Ember.on('willDestroyElement', function(){
this.$(':first-child').tooltip('destroy');
})
});

0 comments on commit 2ce1e51

Please sign in to comment.