diff --git a/app/js/directives/directive-area-chart.js b/app/js/directives/directive-area-chart.js index 556c5e3d..765a5127 100755 --- a/app/js/directives/directive-area-chart.js +++ b/app/js/directives/directive-area-chart.js @@ -10,7 +10,6 @@ angular.module('app').directive('areaChart', function () { width: '=' }, link: function(scope, element) { - console.log(element[0].parentElement); var width = element[0].parentElement.offsetWidth, height = width * 0.6, series = scope.series, diff --git a/app/js/directives/directive-component-select.js b/app/js/directives/directive-component-select.js index 886ebe71..038d93ea 100755 --- a/app/js/directives/directive-component-select.js +++ b/app/js/directives/directive-component-select.js @@ -2,7 +2,7 @@ angular.module('app').directive('componentSelect', function () { // Generting the HTML in this manner is MUCH faster than using an angular template. - function appendGroup(list, opts, cid, mass, wrap) { + function appendGroup(list, opts, cid, mass) { var prevClass = null, prevRating = null; for (var i = 0; i < opts.length; i++) { var o = opts[i]; @@ -47,8 +47,7 @@ angular.module('app').directive('componentSelect', function () { opts: '=', // Component Options object groups: '=', // Groups of Component Options mass: '=', // Current ship unladen mass - s: '=', // Current Slot - wrap: '@' // Wrap on class + s: '=' // Current Slot }, link: function(scope, element) { var list = []; @@ -57,7 +56,6 @@ angular.module('app').directive('componentSelect', function () { var opts = scope.opts; var groups = scope.groups; var mass = scope.mass || 0; - var wrap = scope.wrap; if(groups) { // At present time slots with grouped options (Hardpoints and Internal) can be empty @@ -66,12 +64,12 @@ angular.module('app').directive('componentSelect', function () { var grp = groups[g]; var grpCode = grp[Object.keys(grp)[0]].grp; // Nasty operation to get the grp property of the first/any single component list.push('