Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
pdgago committed Feb 9, 2017
1 parent 3e1c905 commit 374e497
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions file-uploader-completed-overlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
}
Expand Down

0 comments on commit 374e497

Please sign in to comment.