JShint fixes

This commit is contained in:
Colin McLeod
2015-04-16 20:44:27 -07:00
parent acffdd1f4b
commit 0d2fd2804f
10 changed files with 55 additions and 48 deletions

View File

@@ -1,14 +1,11 @@
angular.module('app').directive('costList', ['$rootScope', 'lodash', function ($r, _) {
angular.module('app').directive('costList', ['$rootScope', function ($r) {
return {
restrict: 'A',
scope: {
ship: '='
},
templateUrl: 'views/costs.html',
link: function (scope, element, attributes) {
scope.hps = ship.hardpoints;
scope.ints = ship.internal;
scope.com = ship.common;
link: function (scope) {
scope.$r = $r;
scope.insuranceOptions = {
Alpha: 0.975,
@@ -20,7 +17,7 @@ angular.module('app').directive('costList', ['$rootScope', 'lodash', function ($
scope.toggle = function(item) {
item.incCost = !item.incCost;
scope.ship.updateTotals();
}
};
}
};
}]);

View File

@@ -1,18 +1,18 @@
angular.module('app')
.directive('powerList', ['$rootScope', 'lodash', function ($r, _) {
.directive('powerList', ['$rootScope', function ($r) {
return {
restrict: 'A',
scope: {
ship: '=ship'
},
templateUrl: 'views/power.html',
link: function (scope, element, attributes) {
link: function (scope) {
scope.$r = $r;
scope.toggle = function(slot) {
slot.enabled = !slot.enabled;
scope.ship.updateTotals();
}
};
}
};
}]);

View File

@@ -1,13 +1,13 @@
angular.module('app').directive('shipyardMenu', ['$rootScope', 'lodash', function ($rootScope, _) {
angular.module('app').directive('shipyardMenu', function () {
return {
restrict: 'E',
templateUrl: 'views/menu.html',
link: function (scope, element, attributes) {
link: function () {
// TODO: Saved Ships: load, save, save as, delete, export
// TODO: Links: github, forum, etc
}
};
}]);
});