Removed if statements and fixed style issues

This commit is contained in:
TheHollidayInn
2015-07-22 15:38:17 -05:00
parent 107e27a2c6
commit c61eccaaba
2 changed files with 3 additions and 13 deletions

View File

@@ -217,18 +217,11 @@ habitrpg.controller("InventoryCtrl",
$scope.deselectItem();
}
});
//$scope.listen(keyEvent)
$scope.deselectItem = function() {
if ($scope.selectedFood) {
$scope.selectedFood = null;
}
if ($scope.selectedPotion) {
$scope.selectedPotion = null
}
if ($scope.selectedEgg) {
$scope.selectedEgg = null;
}
$scope.selectedFood = null;
$scope.selectedPotion = null;
$scope.selectedEgg = null;
}
}