public/javascripts/inputex/js/fields/DSSelectField.js
function (items) {
		
			var i, length;
		
			// remove previous <option>s nodes
			while (this.el.childNodes.length > 0) {
				this.el.removeChild(this.el.childNodes[0]);
			}
		
			// add new options
			for (i = 0, length = items.length; i < length ; i += 1) {
				this.addChoice({ value: items[i][this.options.valueKey], label: items[i][this.options.labelKey] });
			}
		}
function (items) {
		
			var i, length;
		
			// remove previous <option>s nodes
			while (this.el.childNodes.length > 0) {
				this.el.removeChild(this.el.childNodes[0]);
			}
		
			// add new options
			for (i = 0, length = items.length; i < length ; i += 1) {
				this.addChoice({ value: items[i][this.options.valueKey], label: items[i][this.options.labelKey] });
			}
		}
function ( items ) { var i , length ; // remove previous <option>s nodes while ( this . el . childNodes . length > 0 ) { this . el . removeChild ( this . el . childNodes [ 0 ] ) ; } // add new options for ( i = 0 , length = items . length ; i < length ; i += 1 ) { this . addChoice ( { value : items [ i ] [ this . options . valueKey ] , label : items [ i ] [ this . options . labelKey ] } ) ; } }
Insert the options
Insert the options