Always unbind internal listeners when closing a modal dialog
This commit is contained in:
@@ -42,6 +42,9 @@ KB.component('confirm-buttons', function (containerElement, options) {
|
||||
|
||||
this.render = function () {
|
||||
KB.on('modal.stop', onStop);
|
||||
KB.on('modal.close', function () {
|
||||
KB.removeListener('modal.stop', onStop);
|
||||
});
|
||||
|
||||
var element = KB.dom('div')
|
||||
.attr('class', 'form-actions')
|
||||
|
||||
Reference in New Issue
Block a user