Making sure tooltips are destroyed when their parent views are destroyed.

This commit is contained in:
Nick Winter 2015-01-31 12:48:44 -08:00
parent 4b388f2775
commit 26ac0c8947

View file

@ -60,6 +60,7 @@ module.exports = class CocoView extends Backbone.View
@undelegateEvents() # removes both events and subs
view.destroy() for id, view of @subviews
$('#modal-wrapper .modal').off 'hidden.bs.modal', @modalClosed
@$el.find('[data-original-title]').tooltip 'destroy'
@endHighlight()
@getPointer(false).remove()
@[key] = undefined for key, value of @