code: function(item) {
          var id = item.id || item;
  
          var removedItem;
          var index = Selectivity.findIndexById(this._data, id);
          if (index > -1) {
              removedItem = this._data[index];
              this._data.splice(index, 1);
          }
  
          if (this._value[index] !== id) {
              index = this._value.indexOf(id);
          }
          if (index > -1) {
              this._value.splice(index, 1);
          }
  
          if (removedItem) {
              this.triggerChange({ removed: removedItem });
          }
  
          if (id === this._highlightedItemId) {
              this._highlightedItemId = null;
          }
  
          this._updateInputWidth();
      }
docs: Removes an item from the selection, if it is selected.
  
  @param item The item to remove. May be an item with 'id' and 'text' properties or just an ID.