Destroy modal when closed
Signed-off-by: Thomas Bille <contact@tbille.fr>
This commit is contained in:
parent
59c3ea91fd
commit
75bc40f7a0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue