src/aria/widgets/controllers/MultiSelectController.js
function (options, textFieldValue) {

            var selectedOptions = [];
            var trim = ariaUtilsString.trim;

            var inSplit = textFieldValue.split(this._separator);
            if (inSplit) {
                for (var i = 0, inSplitLen = aria.utils.Math.min(inSplit.length, this._maxOptions); i < inSplitLen; i++) {
                    for (var j = 0, optionsLen = options.length; j < optionsLen; j++) {
                        var key = trim(inSplit[i]);
                        options[j].label = options[j].label + "";
                        options[j].value = options[j].value + "";
                        key = key + "";

                        if ((trim(options[j].label.toLowerCase()) == key.toLowerCase() || trim(options[j].value.toLowerCase()) == key.toLowerCase())
                                && !ariaUtilsArray.contains(selectedOptions, options[j].value)
                                && !options[j].disabled) {
                            selectedOptions.push(options[j].value);
                        }
                    }
                }

            }

            return selectedOptions;
        }
function (options, textFieldValue) {

            var selectedOptions = [];
            var trim = ariaUtilsString.trim;

            var inSplit = textFieldValue.split(this._separator);
            if (inSplit) {
                for (var i = 0, inSplitLen = aria.utils.Math.min(inSplit.length, this._maxOptions); i < inSplitLen; i++) {
                    for (var j = 0, optionsLen = options.length; j < optionsLen; j++) {
                        var key = trim(inSplit[i]);
                        options[j].label = options[j].label + "";
                        options[j].value = options[j].value + "";
                        key = key + "";

                        if ((trim(options[j].label.toLowerCase()) == key.toLowerCase() || trim(options[j].value.toLowerCase()) == key.toLowerCase())
                                && !ariaUtilsArray.contains(selectedOptions, options[j].value)
                                && !options[j].disabled) {
                            selectedOptions.push(options[j].value);
                        }
                    }
                }

            }

            return selectedOptions;
        }
function ( options , textFieldValue ) { var selectedOptions = [ ] ; var trim = ariaUtilsString . trim ; var inSplit = textFieldValue . split ( this . _separator ) ; if ( inSplit ) { for ( var i = 0 , inSplitLen = aria . utils . Math . min ( inSplit . length , this . _maxOptions ) ; i < inSplitLen ; i ++ ) { for ( var j = 0 , optionsLen = options . length ; j < optionsLen ; j ++ ) { var key = trim ( inSplit [ i ] ) ; options [ j ] . label = options [ j ] . label + "" ; options [ j ] . value = options [ j ] . value + "" ; key = key + "" ; if ( ( trim ( options [ j ] . label . toLowerCase ( ) ) == key . toLowerCase ( ) || trim ( options [ j ] . value . toLowerCase ( ) ) == key . toLowerCase ( ) ) && ! ariaUtilsArray . contains ( selectedOptions , options [ j ] . value ) && ! options [ j ] . disabled ) { selectedOptions . push ( options [ j ] . value ) ; } } } } return selectedOptions ; }
Parse value inserted in the datefield to deduce selected objects
@protected
@param {Array} options
@param {String} textFieldValue
@return {Array}
Parse value inserted in the datefield to deduce selected objects