From 1de05d1f23a23ca3371d35782576d240551cf7ae Mon Sep 17 00:00:00 2001 From: KDSBrowne Date: Fri, 24 Feb 2017 10:54:52 -0800 Subject: [PATCH] remove event listeners --- .../ui/components/nav-bar/settings-dropdown/container.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/container.jsx b/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/container.jsx index f1bfb0c43c..bcf5b317eb 100755 --- a/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/container.jsx @@ -24,10 +24,10 @@ export default class SettingsDropdownContainer extends Component { } componentWillUnmount() { - document.addEventListener("fullscreenchange", this.fullScreenToggleCallback); -    document.addEventListener("webkitfullscreenchange", this.fullScreenToggleCallback); -    document.addEventListener("mozfullscreenchange", this.fullScreenToggleCallback); -    document.addEventListener("MSFullscreenChange", this.fullScreenToggleCallback); + document.removeEventListener("fullscreenchange", this.fullScreenToggleCallback); +    document.removeEventListener("webkitfullscreenchange", this.fullScreenToggleCallback); +    document.removeEventListener("mozfullscreenchange", this.fullScreenToggleCallback); +    document.removeEventListener("MSFullscreenChange", this.fullScreenToggleCallback); } fullScreenToggleCallback() {