media/js/vendor/selectize/selectize.js
function(e) {
			var self = this;
			var defaultPrevented = e.isDefaultPrevented();
			var $target = $(e.target);
	
			if (self.isFocused) {
				// retain focus by preventing native handling. if the
				// event target is the input it should not be modified.
				// otherwise, text selection within the input won't work.
				if (e.target !== self.$control_input[0]) {
					if (self.settings.mode === 'single') {
						// toggle dropdown
						self.isOpen ? self.close() : self.open();
					} else if (!defaultPrevented) {
						self.setActiveItem(null);
					}
					return false;
				}
			} else {
				// give control focus
				if (!defaultPrevented) {
					window.setTimeout(function() {
						self.focus();
					}, 0);
				}
			}
		}
function(e) {
			var self = this;
			var defaultPrevented = e.isDefaultPrevented();
			var $target = $(e.target);
	
			if (self.isFocused) {
				// retain focus by preventing native handling. if the
				// event target is the input it should not be modified.
				// otherwise, text selection within the input won't work.
				if (e.target !== self.$control_input[0]) {
					if (self.settings.mode === 'single') {
						// toggle dropdown
						self.isOpen ? self.close() : self.open();
					} else if (!defaultPrevented) {
						self.setActiveItem(null);
					}
					return false;
				}
			} else {
				// give control focus
				if (!defaultPrevented) {
					window.setTimeout(function() {
						self.focus();
					}, 0);
				}
			}
		}
function ( e ) { var self = this ; var defaultPrevented = e . isDefaultPrevented ( ) ; var $target = $ ( e . target ) ; if ( self . isFocused ) { // retain focus by preventing native handling. if the // event target is the input it should not be modified. // otherwise, text selection within the input won't work. if ( e . target !== self . $control_input [ 0 ] ) { if ( self . settings . mode === 'single' ) { // toggle dropdown self . isOpen ? self . close ( ) : self . open ( ) ; } else if ( ! defaultPrevented ) { self . setActiveItem ( null ) ; } return false ; } } else { // give control focus if ( ! defaultPrevented ) { window . setTimeout ( function ( ) { self . focus ( ) ; } , 0 ) ; } } }
Triggered when the main control element
has a mouse down event.

@param {object} e
@return {boolean}
Triggered when the main control element has a mouse down event .