src/aria/widgets/controllers/MultiAutoCompleteController.js
function (label) {
                var report = new aria.widgets.controllers.reports.DropDownControllerReport();
                var newSuggestions = ariaUtilsJson.copy(this.selectedSuggestions, false);

                var indexToRemove = this._findSuggestion(newSuggestions, {
                    label : label
                });
                if (indexToRemove == -1) {
                    // try to find a free-text option
                    indexToRemove = ariaUtilsArray.indexOf(newSuggestions, label);
                }
                if (indexToRemove > -1) {
                    report.removedSuggestion = newSuggestions[indexToRemove];

                    ariaUtilsArray.removeAt(newSuggestions, indexToRemove);
                    this.selectedSuggestions = newSuggestions;
                }
                report.removedSuggestionIndex = indexToRemove;
                report.value = this.selectedSuggestions;
                return report;
            }
function (label) {
                var report = new aria.widgets.controllers.reports.DropDownControllerReport();
                var newSuggestions = ariaUtilsJson.copy(this.selectedSuggestions, false);

                var indexToRemove = this._findSuggestion(newSuggestions, {
                    label : label
                });
                if (indexToRemove == -1) {
                    // try to find a free-text option
                    indexToRemove = ariaUtilsArray.indexOf(newSuggestions, label);
                }
                if (indexToRemove > -1) {
                    report.removedSuggestion = newSuggestions[indexToRemove];

                    ariaUtilsArray.removeAt(newSuggestions, indexToRemove);
                    this.selectedSuggestions = newSuggestions;
                }
                report.removedSuggestionIndex = indexToRemove;
                report.value = this.selectedSuggestions;
                return report;
            }
function ( label ) { var report = new aria . widgets . controllers . reports . DropDownControllerReport ( ) ; var newSuggestions = ariaUtilsJson . copy ( this . selectedSuggestions , false ) ; var indexToRemove = this . _findSuggestion ( newSuggestions , { label : label } ) ; if ( indexToRemove == - 1 ) { // try to find a free-text option indexToRemove = ariaUtilsArray . indexOf ( newSuggestions , label ) ; } if ( indexToRemove > - 1 ) { report . removedSuggestion = newSuggestions [ indexToRemove ] ; ariaUtilsArray . removeAt ( newSuggestions , indexToRemove ) ; this . selectedSuggestions = newSuggestions ; } report . removedSuggestionIndex = indexToRemove ; report . value = this . selectedSuggestions ; return report ; }
Removal of a suggestion
@param {String} label
@return {aria.widgets.controllers.reports.DropDownControllerReport}
@override
Removal of a suggestion