diff --git a/file-uploader-completed-overlay.html b/file-uploader-completed-overlay.html
index c15647a..5223f12 100644
--- a/file-uploader-completed-overlay.html
+++ b/file-uploader-completed-overlay.html
@@ -147,13 +147,6 @@
this._toggleListeners({enable: false});
}
- _toggleListeners({enable}) {
- const m = enable ? 'addEventListener' : 'removeEventListener';
-
- this[m]('overlay-close-animation-finish', this._overlayAnimatedOut);
- this[m]('overlay-opened', this._overlayOpened);
- }
-
addFiles(files) {
if (Array.isArray(this._files)) {
this._files = files.reverse().concat(this._files).slice(0);
@@ -162,6 +155,13 @@
}
}
+ _toggleListeners({enable}) {
+ const m = enable ? 'addEventListener' : 'removeEventListener';
+
+ this[m]('overlay-close-animation-finish', this._overlayAnimatedOut);
+ this[m]('overlay-opened', this._overlayOpened);
+ }
+
_overlayOpened() {
this._renderThumbnails();
}