Device screen now has the ability to hide and clear the canvas.

This commit is contained in:
Gunther Brunner
2014-05-14 18:12:22 +09:00
parent d1fa99a4c5
commit d59c156297
5 changed files with 10 additions and 29 deletions

View File

@@ -1,19 +1,5 @@
module.exports = function DeviceScreenCtrl($scope, $rootScope, ScalingService) {
$scope.displayError = false
$scope.canView = true
$scope.showScreen = true
$scope.ScalingService = ScalingService
var deregisterPageHidden = $rootScope.$on('pageHidden', function () {
$scope.canView = false
})
var deregisterPageVisible = $rootScope.$on('pageVisible', function () {
$scope.canView = true
})
$scope.$on('$destroy', function() {
deregisterPageHidden()
deregisterPageVisible()
})
}