public/javascripts/inputex/build/inputex.js
function (config, sendUpdatedEvt) {
			
			var position, choice;
			
			position = this.getChoicePosition(config);
			
			if (position !== -1) {
				
				choice = this.choicesList[position];
				
				// test if visible first in case we try to hide twice or more...
				if (choice.visible) {
					
					choice.visible = false;
					
					// Clear if hiding selected choice
					if (this.getValue() === choice.value) {
						this.clear(sendUpdatedEvt);
					}
					
					// Remove from DOM
					this.removeChoiceNode(choice.node);
					
				}
				
			}
			
		}
function (config, sendUpdatedEvt) {
			
			var position, choice;
			
			position = this.getChoicePosition(config);
			
			if (position !== -1) {
				
				choice = this.choicesList[position];
				
				// test if visible first in case we try to hide twice or more...
				if (choice.visible) {
					
					choice.visible = false;
					
					// Clear if hiding selected choice
					if (this.getValue() === choice.value) {
						this.clear(sendUpdatedEvt);
					}
					
					// Remove from DOM
					this.removeChoiceNode(choice.node);
					
				}
				
			}
			
		}
function ( config , sendUpdatedEvt ) { var position , choice ; position = this . getChoicePosition ( config ) ; if ( position !== - 1 ) { choice = this . choicesList [ position ] ; // test if visible first in case we try to hide twice or more... if ( choice . visible ) { choice . visible = false ; // Clear if hiding selected choice if ( this . getValue ( ) === choice . value ) { this . clear ( sendUpdatedEvt ) ; } // Remove from DOM this . removeChoiceNode ( choice . node ) ; } } }
Hide a choice
@param {Object} config An object targeting the choice to hide (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' })
Hide a choice