public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function (config) {
			
			var position, choice;
			
			// Get choice's position
			position = this.getChoicePosition(config);
			
			if (position === -1) {
				throw new Error("SelectField : invalid or missing position, label or value in removeChoice");
			}
			
			// Choice to remove
			choice = this.choicesList[position];
			
			// Clear if removing selected choice
			if (this.getValue() === choice.value) {
				this.clear();
			}
			
			// Remove choice in list at position
			this.choicesList.splice(position, 1); // remove 1 element at position
			
			// Remove node from DOM
			this.removeChoiceNode(choice.node);
			
		}
function (config) {
			
			var position, choice;
			
			// Get choice's position
			position = this.getChoicePosition(config);
			
			if (position === -1) {
				throw new Error("SelectField : invalid or missing position, label or value in removeChoice");
			}
			
			// Choice to remove
			choice = this.choicesList[position];
			
			// Clear if removing selected choice
			if (this.getValue() === choice.value) {
				this.clear();
			}
			
			// Remove choice in list at position
			this.choicesList.splice(position, 1); // remove 1 element at position
			
			// Remove node from DOM
			this.removeChoiceNode(choice.node);
			
		}
function ( config ) { var position , choice ; // Get choice's position position = this . getChoicePosition ( config ) ; if ( position === - 1 ) { throw new Error ( "SelectField : invalid or missing position, label or value in removeChoice" ) ; } // Choice to remove choice = this . choicesList [ position ] ; // Clear if removing selected choice if ( this . getValue ( ) === choice . value ) { this . clear ( ) ; } // Remove choice in list at position this . choicesList . splice ( position , 1 ) ; // remove 1 element at position // Remove node from DOM this . removeChoiceNode ( choice . node ) ; }
Remove a choice
@param {Object} config An object targeting the choice to remove (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' })
Remove a choice