Cleaning up jargon and minor code changes

This commit is contained in:
Colin McLeod
2015-04-16 19:44:39 -07:00
parent aad4600326
commit 11e5c138dc
30 changed files with 67 additions and 60 deletions

View File

@@ -1,11 +0,0 @@
angular.module('app').directive('componentDetails', [function () {
return {
restrict: 'E',
scope:{
c: '=',
lbl: '=',
opts: '='
},
templateUrl: 'views/component.html'
};
}]);

View File

@@ -9,8 +9,8 @@ angular.module('app')
link: function (scope, element, attributes) {
scope.$r = $r;
scope.toggle = function(component) {
component.enabled = !component.enabled;
scope.toggle = function(slot) {
slot.enabled = !slot.enabled;
scope.ship.updateTotals();
}
}

View File

@@ -0,0 +1,11 @@
angular.module('app').directive('slotDetails', function () {
return {
restrict: 'A',
scope:{
c: '=',
lbl: '=',
opts: '='
},
templateUrl: 'views/slot.html'
};
});