src/aria/widgets/form/SelectBox.js
function () {
            this.$DropDownTextInput._checkCfgConsistency.call(this);
            var opt = this._cfg.options;
            var values = [];
            var dupValues = [];
            var map = {};

            for (var count = 0; count < opt.length; count++) {
                if (map[opt[count].value]) {
                    dupValues.push(opt[count].value);
                } else {
                    map[opt[count].value] = true;
                    values.push(opt[count]);
                }
            }
            if (dupValues.length > 0) {
                this.controller.setListOptions(values);
                this.$logError(this.DUPLICATE_VALUE, [dupValues]);
            }

        }
function () {
            this.$DropDownTextInput._checkCfgConsistency.call(this);
            var opt = this._cfg.options;
            var values = [];
            var dupValues = [];
            var map = {};

            for (var count = 0; count < opt.length; count++) {
                if (map[opt[count].value]) {
                    dupValues.push(opt[count].value);
                } else {
                    map[opt[count].value] = true;
                    values.push(opt[count]);
                }
            }
            if (dupValues.length > 0) {
                this.controller.setListOptions(values);
                this.$logError(this.DUPLICATE_VALUE, [dupValues]);
            }

        }
function ( ) { this . $DropDownTextInput . _checkCfgConsistency . call ( this ) ; var opt = this . _cfg . options ; var values = [ ] ; var dupValues = [ ] ; var map = { } ; for ( var count = 0 ; count < opt . length ; count ++ ) { if ( map [ opt [ count ] . value ] ) { dupValues . push ( opt [ count ] . value ) ; } else { map [ opt [ count ] . value ] = true ; values . push ( opt [ count ] ) ; } } if ( dupValues . length > 0 ) { this . controller . setListOptions ( values ) ; this . $logError ( this . DUPLICATE_VALUE , [ dupValues ] ) ; } }
This method checks the consistancy of the values provided in the attributes of SelectBox and logs and error
if there are any descripancies
This method checks the consistancy of the values provided in the attributes of SelectBox and logs and error if there are any descripancies