Stop logging on window unload, not on scope destroy.

This commit is contained in:
Gunther Brunner
2014-05-21 17:14:56 +09:00
parent eb53036f07
commit eb1baa4641

View File

@@ -22,9 +22,9 @@ module.exports = function LogsCtrl($scope, LogcatService) {
}
})
$scope.$on('$destroy', function () {
// $scope.control.stopLogcat()
})
window.onbeforeunload = function () {
$scope.control.stopLogcat()
}
$scope.clear = function () {
LogcatService.clear()