diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-01-26 17:41:03 -0500 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-01-26 17:41:03 -0500 |
| commit | 0bab2b6a2d06ded4ecc10e2fc03f95f69e96fa65 (patch) | |
| tree | 581bec91d7aee25aa872304822800e8c0b320f1c /www/js/MontageHistoryCtrl.js | |
| parent | ac521c0b5cd3420a0c45f3e0946b00565992a98b (diff) | |
#155 - trapping 'beforeLeave' so we have enough time to apply window.stop
Former-commit-id: 6f3a8dada384f770d5b2c6efc089fb06406cef54
Diffstat (limited to 'www/js/MontageHistoryCtrl.js')
| -rw-r--r-- | www/js/MontageHistoryCtrl.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/www/js/MontageHistoryCtrl.js b/www/js/MontageHistoryCtrl.js index 3c2ea33c..ddd667e6 100644 --- a/www/js/MontageHistoryCtrl.js +++ b/www/js/MontageHistoryCtrl.js @@ -1147,8 +1147,10 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc ZMDataModel.zmLog ("Stopping network pull..."); // make sure this is applied in scope digest to stop network pull - // cant do window stop here as we are about to transition states - // and that causes problems + // thats why we are doing it beforeLeave + + window.stop(); + /* $timeout ( function() { for (var i=0; i< $scope.MontageMonitors.length; i++) @@ -1156,7 +1158,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc $scope.MontageMonitors[i].eventUrl = ""; } - },0); + },0);*/ }); $scope.$on('$ionicView.unloaded', function () { |
