diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-07 06:59:42 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-07 06:59:42 -0400 |
| commit | 8e6aa82c09051862f6e3969b5935eafe98c32493 (patch) | |
| tree | bbc94c1d1d25f752d227f684c09b5db09983a739 /www/js/EventModalCtrl.js | |
| parent | 6f6e8263988829f9d2356a2bec87f669681ed4a7 (diff) | |
remove global handlers on exit
Diffstat (limited to 'www/js/EventModalCtrl.js')
| -rw-r--r-- | www/js/EventModalCtrl.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index e91bea99..a6dd87e8 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -1125,6 +1125,11 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro }); + $scope.$on('$ionicView.beforeLeave', function () { + document.removeEventListener("pause", onPause, false); + ddocument.removeEventListener("resume", onResume, false); + }); + $scope.showHideControls = function () { if (videoPlaybarClicked) { |
