src/aria/widgets/form/MultiAutoComplete.js
function () {
            var maxCount = 0, suggestion = this.controller.selectedSuggestions;
            if (suggestion.length < this.controller.maxOptions) {
                return this.controller.maxOptions;
            } else {
                for (var i = 0, len = suggestion.length; i < len; i++) {
                    if (ariaUtilsType.isObject(suggestion[i])) {
                        maxCount++;
                    }
                }
                return maxCount;
            }
        }
function () {
            var maxCount = 0, suggestion = this.controller.selectedSuggestions;
            if (suggestion.length < this.controller.maxOptions) {
                return this.controller.maxOptions;
            } else {
                for (var i = 0, len = suggestion.length; i < len; i++) {
                    if (ariaUtilsType.isObject(suggestion[i])) {
                        maxCount++;
                    }
                }
                return maxCount;
            }
        }
function ( ) { var maxCount = 0 , suggestion = this . controller . selectedSuggestions ; if ( suggestion . length < this . controller . maxOptions ) { return this . controller . maxOptions ; } else { for ( var i = 0 , len = suggestion . length ; i < len ; i ++ ) { if ( ariaUtilsType . isObject ( suggestion [ i ] ) ) { maxCount ++ ; } } return maxCount ; } }
Internal method for calculating the maxOptions allowed for setting it in template
@return {Number}
Internal method for calculating the maxOptions allowed for setting it in template