[Addressability] Comments

Added comments to the slight change in Browse
Controller and BrowseObjectController. WTD 25.
This commit is contained in:
Shivam Dave 2015-06-26 12:58:16 -07:00
parent bd57064ca3
commit d42abfef98
2 changed files with 4 additions and 0 deletions

@ -52,6 +52,8 @@ define(
unlisten;
unlisten = $scope.$on('$locationChangeSuccess', function () {
// Checks path to make sure /browse/ is at front
// if so, change $route.current
if ($location.path().indexOf("/browse/") === 0) {
$route.current = priorRoute;
}

@ -54,6 +54,8 @@ define(
if (viewKey) {
$location.search('view', viewKey);
unlisten = $scope.$on('$locationChangeSuccess', function () {
// Checks path to make sure /browse/ is at front
// if so, change $route.current
if ($location.path().indexOf("/browse/") === 0) {
$route.current = priorRoute;
}