Fix all res/ files with ESLint rules with 0 errors.

This commit is contained in:
Gunther Brunner
2016-01-19 23:08:33 +09:00
parent 1006564ae7
commit a3f815c118
258 changed files with 1634 additions and 1634 deletions

View File

@@ -1,5 +1,5 @@
module.exports =
function ControlPanesController ($scope, $http, gettext, $routeParams,
function ControlPanesController($scope, $http, gettext, $routeParams,
$timeout, $location, DeviceService, GroupService, ControlService,
StorageService, FatalMessageService, SettingsService) {
@@ -58,12 +58,12 @@ module.exports =
$scope.control = null
// TODO: Move this out to Ctrl.resolve
function getDevice (serial) {
function getDevice(serial) {
DeviceService.get(serial, $scope)
.then(function (device) {
.then(function(device) {
return GroupService.invite(device)
})
.then(function (device) {
.then(function(device) {
$scope.device = device
$scope.control = ControlService.create(device, device.channel)
@@ -74,8 +74,8 @@ module.exports =
return device
})
.catch(function () {
$timeout(function () {
.catch(function() {
$timeout(function() {
$location.path('/')
})
})
@@ -83,7 +83,7 @@ module.exports =
getDevice($routeParams.serial)
$scope.$watch('device.state', function (newValue, oldValue) {
$scope.$watch('device.state', function(newValue, oldValue) {
if (newValue !== oldValue) {
if (oldValue === 'using') {
FatalMessageService.open($scope.device, false)