 
         Editing = $scope.editing = $attrs.edit != undefined
         ID = $scope.id = $attrs.id ? 'ss'
-        ShowGlobal = false
-        $scope.showGlobal = ShowGlobal
+        $scope.showGlobal = false
         Limit = $attrs.limit || Infinity
         Key = undefined
 

          return

        $scope.showHideGlobal = ->
          ShowGlobal = !ShowGlobal
          $scope.showGlobal = ShowGlobal
          $scope.setKey(Key.id)
          return


          all = Object.keys(volume.metrics).sort(byNumber).map((i) -> constants.category[i])
          if slot
            slot = undefined
            cats = all.filter((c) -> $scope.showGlobal || (Cats[c.id] ? Editing))
            cats.push(pseudoCategory.asset)
            cats.unshift(pseudoCategory.slot)
            $scope.anyGlobal = all.some((c) -> Cats[c.id] == false)
