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

@@ -3,7 +3,7 @@ require('./remote-debug.css')
module.exports = angular.module('stf.remote-debug', [
require('gettext').name
])
.run(["$templateCache", function ($templateCache) {
.run(['$templateCache', function($templateCache) {
$templateCache.put(
'control-panes/advanced/remote-debug/remote-debug.jade',
require('./remote-debug.jade')

View File

@@ -1,9 +1,9 @@
module.exports = function RemoteDebugCtrl($scope, $timeout, gettext) {
function startRemoteConnect() {
if ($scope.control) {
$scope.control.startRemoteConnect().then(function (result) {
$scope.control.startRemoteConnect().then(function(result) {
var url = result.lastData
$scope.$apply(function () {
$scope.$apply(function() {
$scope.debugCommand = 'adb connect ' + url
})
})
@@ -15,14 +15,14 @@ module.exports = function RemoteDebugCtrl($scope, $timeout, gettext) {
// TODO: Remove timeout and fix control initialization
if (!startRemoteConnect()) {
$timeout(function () {
$timeout(function() {
if (!startRemoteConnect()) {
$timeout(startRemoteConnect, 1000)
}
}, 200)
}
$scope.$watch('platform', function (newValue) {
$scope.$watch('platform', function(newValue) {
if (newValue === 'native') {
$scope.remoteDebugTooltip =
gettext('Run the following on your command line to debug the device from your IDE')

View File

@@ -1,17 +1,17 @@
describe('RemoteDebugCtrl', function () {
describe('RemoteDebugCtrl', function() {
beforeEach(angular.mock.module(require('./').name));
beforeEach(angular.mock.module(require('./').name))
var scope, ctrl;
var scope, ctrl
beforeEach(inject(function ($rootScope, $controller) {
scope = $rootScope.$new();
ctrl = $controller('RemoteDebugCtrl', {$scope: scope});
}));
beforeEach(inject(function($rootScope, $controller) {
scope = $rootScope.$new()
ctrl = $controller('RemoteDebugCtrl', {$scope: scope})
}))
it('should ...', inject(function () {
expect(1).toEqual(1);
it('should ...', inject(function() {
expect(1).toEqual(1)
}));
}))
});
})