mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Device screen now has the ability to hide and clear the canvas.
This commit is contained in:
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user