mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix(hourglass): Use method on $scope
This commit is contained in:
@@ -251,7 +251,9 @@ habitrpg.controller("InventoryCtrl",
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.hasAllTimeTravelerItems = function() {
|
$scope.hasAllTimeTravelerItems = function() {
|
||||||
return (hasAllTimeTravelerItemsOfType('mystery') && hasAllTimeTravelerItemsOfType('pets') && hasAllTimeTravelerItemsOfType('mounts'));
|
return ($scope.hasAllTimeTravelerItemsOfType('mystery') &&
|
||||||
|
$scope.hasAllTimeTravelerItemsOfType('pets') &&
|
||||||
|
$scope.hasAllTimeTravelerItemsOfType('mounts'));
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.hasAllTimeTravelerItemsOfType = function(type) {
|
$scope.hasAllTimeTravelerItemsOfType = function(type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user