Unbreaking karma karma lama

This commit is contained in:
Will Marshall
2014-04-25 12:04:02 +10:00
parent c91e3aaa79
commit 22dc8cbfa0
7 changed files with 46 additions and 4 deletions

View File

@@ -8,6 +8,9 @@ Darkswarm.controller "HubNodeCtrl", ($scope, Navigation, $location, $anchorScrol
$scope.current = ->
$scope.hub.id is CurrentHub.id
$scope.emptiesCart = ->
CurrentHub.id isnt undefined and !$scope.current()
if $scope.open()
$anchorScroll()