fix(hourglass): Use method on $scope

This commit is contained in:
Sabe Jones
2015-09-16 16:46:12 -04:00
parent 98cd8364c6
commit fb50f27fa7

View File

@@ -251,7 +251,9 @@ habitrpg.controller("InventoryCtrl",
};
$scope.hasAllTimeTravelerItems = function() {
return (hasAllTimeTravelerItemsOfType('mystery') && hasAllTimeTravelerItemsOfType('pets') && hasAllTimeTravelerItemsOfType('mounts'));
return ($scope.hasAllTimeTravelerItemsOfType('mystery') &&
$scope.hasAllTimeTravelerItemsOfType('pets') &&
$scope.hasAllTimeTravelerItemsOfType('mounts'));
};
$scope.hasAllTimeTravelerItemsOfType = function(type) {