Skip to content

Commit

Permalink
Fix: Fix removeEventListener in MediaBaseViewer (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhh1988 authored Jun 8, 2017
1 parent 98ad9cc commit 5760a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/viewers/media/MediaBaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const EMIT_WAIT_TIME_IN_MILLIS = 100;

if (this.mediaContainerEl) {
this.mediaContainerEl.removeChild(this.mediaEl);
this.mediaContainerEl.removeEventListener(this.containerClickHandler);
this.mediaContainerEl.removeEventListener('click', this.containerClickHandler);
}
} catch (e) {
// do nothing
Expand Down

0 comments on commit 5760a12

Please sign in to comment.