From 4487e9ac990dd6a471cd10c0c3b683db96badfcb Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Thu, 16 Apr 2015 20:53:49 -0700 Subject: [PATCH] Refactoring out clear slot ability for the moment --- app/js/shipyard/factory-ship.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/js/shipyard/factory-ship.js b/app/js/shipyard/factory-ship.js index 4c698d82..9606e960 100644 --- a/app/js/shipyard/factory-ship.js +++ b/app/js/shipyard/factory-ship.js @@ -190,12 +190,8 @@ angular.module('shipyard').factory('ShipFactory', ['components', 'lodash', funct } this.sgSI = slotIndex; } - } else { - // Deselect current component - slot.id = null; - slot.c = null; + this.updateTotals(); } - this.updateTotals(); }; /**