mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Removed if statements and fixed style issues
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user