Removing $rootScope for device and control, not needed anymore.

This commit is contained in:
Gunther Brunner
2014-04-08 20:50:35 +09:00
parent b4e30aae75
commit e10a58c881
11 changed files with 41 additions and 89 deletions

View File

@@ -1,6 +1,6 @@
var _ = require('lodash')
module.exports = function ActivitiesCtrl($scope, $rootScope) {
module.exports = function ActivitiesCtrl($scope) {
$scope.selectedAction = ''
$scope.selectedCategory = ''
$scope.selectedData = ''
@@ -82,10 +82,11 @@ module.exports = function ActivitiesCtrl($scope, $rootScope) {
command += ' -d ' + $scope.selectedData
}
if ($scope.selectedPackageName && $scope.selectedActivityName) {
command += ' -n ' + $scope.selectedPackageName + '/' + $scope.selectedActivityName
command += ' -n ' +
$scope.selectedPackageName + '/' + $scope.selectedActivityName
}
var cmd = $rootScope.control.shell(command)
var cmd = $scope.control.shell(command)
return cmd.promise.then(function (result) {
console.log(result)
})