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/MontageHistoryCtrl.js | |
| parent | 6f6e8263988829f9d2356a2bec87f669681ed4a7 (diff) | |
remove global handlers on exit
Diffstat (limited to 'www/js/MontageHistoryCtrl.js')
| -rw-r--r-- | www/js/MontageHistoryCtrl.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/MontageHistoryCtrl.js b/www/js/MontageHistoryCtrl.js index 53a27b3c..8915799e 100644 --- a/www/js/MontageHistoryCtrl.js +++ b/www/js/MontageHistoryCtrl.js @@ -1116,6 +1116,10 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc viewCleanup(); viewCleaned = true; + document.removeEventListener("pause", onPause, false); + document.removeEventListener("resume", onResume, false); + + // if ($scope.modal) $scope.modal.remove(); NVR.log("Cancelling event query timer"); |
