       true
 
     $scope.selectAll = (event, c) ->
-      range = c.segment
-      ruler.selection = range
+      ruler.selection = range = c.segment
       editExcerpt()
       if range && isFinite(range.l) && !range.contains(ruler.position)
         seekOffset(range.l)

          new Segment(endPos, startPos)
        else if startPos = endPos
          new Segment(startPos)
      editExcerpt() if event.type != 'mousemove'
      return

    removed = (track) ->

        updateRange(@segment = new Segment(asset.segment))
        select(this) if `asset.id == target.asset`
        return

      fillData: ->
        super()
        if !@asset
          @data.position = if ruler.range.uBounded then ruler.range.u else 0

      Object.defineProperty @prototype, 'id',
        get: -> @asset?.id
