rem: if (this.isEqual(item0, vItem)) 
add:  if (!this.isEqual(item0, vItem)) 
context: proto.setItemSelected = function(vItem, vSelected){  var hc = this.getItemHashCode(vItem);  switch(this.getMultiSelection())  {    // Multiple item selection is allowed    case true:      if (!this.getItemEnabled(vItem)) {        return;      };          // If selection state is not to be changed => return      if (this.getItemSelected(vItem) == vSelected) {        return;      };      // Otherwise render new state      this.renderItemSelectionState(vItem, vSelected);      // Add item to selection hash / delete it from there           vSelected ? this._selectedItems.add(vItem) : this._selectedItems.remove(vItem);      // Dispatch change Event      this._dispatchChange();                break;    // Multiple item selection is NOT allowed    case false:      var item0 = this.getSelectedItems()[0];                if (vSelected)      {        // Precheck for any changes        var old = item0;          if (this.isEqual(vItem, old)) {          return;        };          // Reset rendering of previous selected item        if (old != null) {          this.renderItemSelectionState(old, false);        };          // Render new item as selected        this.renderItemSelectionState(vItem, true);                // Reset current selection hash        this._selectedItems.removeAll();                // Add new one        this._selectedItems.add(vItem);                // Dispatch change Event        this._dispatchChange();      }      else      {        // Pre-check if item is currently selected        if (this.isEqual(item0, vItem))        {          // Reset rendering as selected item          this.renderItemSelectionState(vItem, false);                    // Reset current selection hash          this._selectedItems.removeAll();                    // Dispatch change Event          this._dispatchChange();        };      };            break;     };};
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/639608dda157fee144e2aaee9c28c7cdb0648137/QxSelectionManager.js/buggy/qooxdoo/source/script/managers/QxSelectionManager.js