Destroy modal when closed

Signed-off-by: Thomas Bille <contact@tbille.fr>
This commit is contained in:
Thomas Bille 2017-07-10 14:33:41 +02:00 committed by Thomas Bille
parent 59c3ea91fd
commit 75bc40f7a0
1 changed files with 3 additions and 1 deletions

View File

@ -212,8 +212,10 @@
// Ugly hack to catch remaining keyup events.
setTimeout(function() {
self._trigger('close', self);
self.$dialog.hide();
}, 200);
self.$dialog.remove();
this.destroy();
},
destroy: function() {
if(this.$title) {