Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 8fa4859

Browse files
authored
delegate the change to a new method
1 parent 898be1b commit 8fa4859

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/listings/listings.controller.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { loadUser } from '../services/userv3.service.js'
2727
// listen for location hash update
2828
$scope.$on('$locationChangeSuccess', function(event) {
2929
if($scope.challengeFilter != null) {
30-
$scope.challengeFilter.forceUpdate()
30+
$scope.challengeFilter.updateFilter($location.hash())
3131
}
3232
})
3333
$scope.myChallenges = []
@@ -39,9 +39,6 @@ import { loadUser } from '../services/userv3.service.js'
3939
onSaveFilterToUrl: function(filter) {
4040
$location.hash(filter)
4141
},
42-
getFilterFromUrl: function() {
43-
return $location.hash()
44-
},
4542
setChallengeFilter: function(component) {
4643
$scope.challengeFilter = component;
4744
}
@@ -103,9 +100,6 @@ import { loadUser } from '../services/userv3.service.js'
103100
onSaveFilterToUrl: function(filter) {
104101
$location.hash(filter)
105102
},
106-
getFilterFromUrl: function() {
107-
return $location.hash()
108-
},
109103
setChallengeFilter: function(component) {
110104
$scope.challengeFilter = component;
111105
}

0 commit comments

Comments
 (0)