code: function(state) {
  			var changed = false,
  				opts = this.tree.options,
  				unselectable = FT.evalOption(
  					"unselectable",
  					this,
  					this,
  					opts,
  					false
  				),
  				unselectableStatus = FT.evalOption(
  					"unselectableStatus",
  					this,
  					this,
  					opts,
  					undefined
  				);
  
  			if (unselectable && unselectableStatus != null) {
  				state = unselectableStatus;
  			}
  			switch (state) {
  				case false:
  					changed = this.selected || this.partsel;
  					this.selected = false;
  					this.partsel = false;
  					break;
  				case true:
  					changed = !this.selected || !this.partsel;
  					this.selected = true;
  					this.partsel = true;
  					break;
  				case undefined:
  					changed = this.selected || !this.partsel;
  					this.selected = false;
  					this.partsel = true;
  					break;
  				default:
  					_assert(false, "invalid state: " + state);
  			}
  			// this.debug("fixSelection3AfterLoad() _changeSelectStatusAttrs()", state, changed);
  			if (changed) {
  				this.renderStatus();
  			}
  			return changed;
  		}
docs: /* Apply selection state (internal use only)