public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function () {
		
			var i, length;
		
			// create DOM <select> node
			this.el = inputEx.cn('select', {
			
				id: this.divEl.id ? this.divEl.id + '-field' : YAHOO.util.Dom.generateId(),
				name: this.options.name || ''
			
			});
		
			// list of choices (e.g. [{ label: "France", value:"fr", node:<DOM-node>, visible:true }, {...}, ...])
			this.choicesList = [];
		
			// add choices
			for (i = 0, length = this.options.choices.length; i < length; i += 1) {
				this.addChoice(this.options.choices[i]);
			}
		
			// append <select> to DOM tree
			this.fieldContainer.appendChild(this.el);
		}
function () {
		
			var i, length;
		
			// create DOM <select> node
			this.el = inputEx.cn('select', {
			
				id: this.divEl.id ? this.divEl.id + '-field' : YAHOO.util.Dom.generateId(),
				name: this.options.name || ''
			
			});
		
			// list of choices (e.g. [{ label: "France", value:"fr", node:<DOM-node>, visible:true }, {...}, ...])
			this.choicesList = [];
		
			// add choices
			for (i = 0, length = this.options.choices.length; i < length; i += 1) {
				this.addChoice(this.options.choices[i]);
			}
		
			// append <select> to DOM tree
			this.fieldContainer.appendChild(this.el);
		}
function ( ) { var i , length ; // create DOM <select> node this . el = inputEx . cn ( 'select' , { id : this . divEl . id ? this . divEl . id + '-field' : YAHOO . util . Dom . generateId ( ) , name : this . options . name || '' } ) ; // list of choices (e.g. [{ label: "France", value:"fr", node:<DOM-node>, visible:true }, {...}, ...]) this . choicesList = [ ] ; // add choices for ( i = 0 , length = this . options . choices . length ; i < length ; i += 1 ) { this . addChoice ( this . options . choices [ i ] ) ; } // append <select> to DOM tree this . fieldContainer . appendChild ( this . el ) ; }
Build a select tag with options
Build a select tag with options