summaryrefslogtreecommitdiff
path: root/www/js/MontageHistoryCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2020-09-07 06:59:42 -0400
committerPliable Pixels <pliablepixels@gmail.com>2020-09-07 06:59:42 -0400
commit8e6aa82c09051862f6e3969b5935eafe98c32493 (patch)
treebbc94c1d1d25f752d227f684c09b5db09983a739 /www/js/MontageHistoryCtrl.js
parent6f6e8263988829f9d2356a2bec87f669681ed4a7 (diff)
remove global handlers on exit
Diffstat (limited to 'www/js/MontageHistoryCtrl.js')
-rw-r--r--www/js/MontageHistoryCtrl.js4
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");