src/selectivity.js
function(newData, options) {
        options = options || {};

        newData = this.validateData(newData);

        this._data = newData;
        this._value = this.getValueForData(newData);

        if (options.triggerChange !== false) {
            this.triggerChange();
        }
    }
function(newData, options) {
        options = options || {};

        newData = this.validateData(newData);

        this._data = newData;
        this._value = this.getValueForData(newData);

        if (options.triggerChange !== false) {
            this.triggerChange();
        }
    }
function ( newData , options ) { options = options || { } ; newData = this . validateData ( newData ) ; this . _data = newData ; this . _value = this . getValueForData ( newData ) ; if ( options . triggerChange !== false ) { this . triggerChange ( ) ; } }
Sets the selection data.

The selection data contains both IDs and text labels. If you only want to set or get the IDs,
you should use the value() method.

@param newData New data to set. For a MultipleSelectivity instance the data must be an array
of objects with 'id' and 'text' properties, for a SingleSelectivity instance
the data must be a single such object or null to indicate no item is selected.
@param options Optional options object. May contain the following property:
triggerChange - Set to false to suppress the "change" event being triggered.
Note this will also cause the UI to not update automatically;
so you may want to call rerenderSelection() manually when
using this option.
Sets the selection data .