Improve jshint task and fix errors

Change-Id: I1b9c7d4a7040e3fee66388b9744b553a6fb1da6e
This commit is contained in:
Vincent Fournier 2015-05-20 13:59:09 -04:00
parent 5726557baf
commit 63f3ad58d6
9 changed files with 14 additions and 6 deletions

View File

@ -74,7 +74,6 @@ module.exports = function (grunt) {
globals: { globals: {
document: true, document: true,
angular: true, angular: true,
jQuery: true,
$: true, $: true,
describe: true, describe: true,
it: true, it: true,

View File

@ -1,5 +1,6 @@
'use strict'; /*global jQuery */
'use strict';
angular.module('bansho.config', []) angular.module('bansho.config', [])

View File

@ -29,11 +29,9 @@ angular.module('bansho.host', ['bansho.live',
if (service.service_description === "cpu") { if (service.service_description === "cpu") {
$scope.host.cpuService = service; $scope.host.cpuService = service;
$scope.host.services.splice(i, 1); $scope.host.services.splice(i, 1);
console.log(i)
} else if (service.service_description === "load") { } else if (service.service_description === "load") {
$scope.host.loadService = service; $scope.host.loadService = service;
$scope.host.services.splice(i, 1); $scope.host.services.splice(i, 1);
console.log(i)
} else { } else {
++i; ++i;
} }

View File

@ -1,3 +1,5 @@
/*global jQuery */
'use strict'; 'use strict';
angular.module('bansho.live', []) angular.module('bansho.live', [])

View File

@ -1,3 +1,5 @@
/*global PNotify */
'use strict'; 'use strict';
angular.module('bansho.notifications', []) angular.module('bansho.notifications', [])

View File

@ -19,7 +19,7 @@ angular.module('bansho.table.state_icon', [])
$scope.stateClass = 'state--error'; $scope.stateClass = 'state--error';
} }
}] }]
} };
}) })
.directive('banshoServiceStateIcon', function () { .directive('banshoServiceStateIcon', function () {
@ -40,5 +40,5 @@ angular.module('bansho.table.state_icon', [])
$scope.stateClass = 'state--error'; $scope.stateClass = 'state--error';
} }
}] }]
} };
}); });

View File

@ -1,3 +1,5 @@
/*global jQuery */
'use strict'; 'use strict';
angular.module('bansho.view', ['ngRoute', angular.module('bansho.view', ['ngRoute',

View File

@ -1,3 +1,5 @@
/*global jQuery */
'use strict'; 'use strict';
angular.module('bansho.view.dashboard', ['ngRoute', angular.module('bansho.view.dashboard', ['ngRoute',

View File

@ -1,3 +1,5 @@
/*global jQuery */
'use strict'; 'use strict';
angular.module('bansho.view.singleTable', ['ngRoute', angular.module('bansho.view.singleTable', ['ngRoute',