mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
Making sure tooltips are destroyed when their parent views are destroyed.
This commit is contained in:
parent
4b388f2775
commit
26ac0c8947
1 changed files with 1 additions and 0 deletions
|
@ -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 @
|
||||
|
|
Loading…
Reference in a new issue