      check item was contained in selectableTickets.
     ###
     isContained: (item) ->
-      selectable = $scope.listData.getSelectable()
+      selectable = @listData.getSelectable()
       found = selectable.some (e) -> item.equals e
       return found
 


    @inject: ['$scope', 'Ticket', 'State', 'Message', 'Resource']

    constructor: (@$scope, @listData, @State, @Message, @Resource) ->
      @$scope.listData = listData
      @$scope.selected = @$scope.selectedProject


    removeItem: (item) ->
      selected = $scope.listData.getSelected()[0]
      if State.isTracking and item.equals selected
        return
      super(item)

    ###
    addItem: (item) ->
      item.show = BaseEditState.SHOW.SHOW
      @listData.add item
      @listData.setParam item.url, item.id, {show: BaseEditState.SHOW.SHOW}
      Message.toast Resource.string("msgAdded").format(item.text)


