fix(interactive-tour): cleanup steps when navigating chapters, don't use tour.restart()

This commit is contained in:
Tyler Renelle
2015-03-06 13:27:51 -07:00
parent 232224c497
commit a7232b5abe
2 changed files with 18 additions and 6 deletions

View File

@@ -2,7 +2,6 @@
habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$http', '$state', 'Guide', 'Shared',
function($rootScope, $scope, $location, User, $http, $state, Guide, Shared) {
Guide.goto('intro', 5);
$scope.profile = User.user;
$scope.profile.petCount = Shared.countPets($rootScope.countExists($scope.profile.items.pets), $scope.profile.items.pets);
$scope.profile.mountCount = Shared.countMounts($rootScope.countExists($scope.profile.items.mounts), $scope.profile.items.mounts);