summaryrefslogtreecommitdiff
path: root/assets/js/components/screenshot.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/components/screenshot.js')
-rw-r--r--assets/js/components/screenshot.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/js/components/screenshot.js b/assets/js/components/screenshot.js
index 4cab31a1..8f40487d 100644
--- a/assets/js/components/screenshot.js
+++ b/assets/js/components/screenshot.js
@@ -109,6 +109,10 @@ KB.component('screenshot', function (containerElement) {
initialize();
}
+ KB.on('modal.close', function () {
+ destroy();
+ });
+
this.render = function () {
inputElement = KB.dom('input')
.attr('type', 'hidden')