media/js/vendor/selectize/selectize.js
function() {
			var self = this;
			var eventNS = self.eventNS;
			var revertSettings = self.revertSettings;
	
			self.trigger('destroy');
			self.off();
			self.$wrapper.remove();
			self.$dropdown.remove();
	
			self.$input
				.html('')
				.append(revertSettings.$children)
				.removeAttr('tabindex')
				.removeClass('selectized')
				.attr({tabindex: revertSettings.tabindex})
				.show();
	
			self.$control_input.removeData('grow');
			self.$input.removeData('selectize');
	
			$(window).off(eventNS);
			$(document).off(eventNS);
			$(document.body).off(eventNS);
	
			delete self.$input[0].selectize;
		}
function() {
			var self = this;
			var eventNS = self.eventNS;
			var revertSettings = self.revertSettings;
	
			self.trigger('destroy');
			self.off();
			self.$wrapper.remove();
			self.$dropdown.remove();
	
			self.$input
				.html('')
				.append(revertSettings.$children)
				.removeAttr('tabindex')
				.removeClass('selectized')
				.attr({tabindex: revertSettings.tabindex})
				.show();
	
			self.$control_input.removeData('grow');
			self.$input.removeData('selectize');
	
			$(window).off(eventNS);
			$(document).off(eventNS);
			$(document.body).off(eventNS);
	
			delete self.$input[0].selectize;
		}
function ( ) { var self = this ; var eventNS = self . eventNS ; var revertSettings = self . revertSettings ; self . trigger ( 'destroy' ) ; self . off ( ) ; self . $wrapper . remove ( ) ; self . $dropdown . remove ( ) ; self . $input . html ( '' ) . append ( revertSettings . $children ) . removeAttr ( 'tabindex' ) . removeClass ( 'selectized' ) . attr ( { tabindex : revertSettings . tabindex } ) . show ( ) ; self . $control_input . removeData ( 'grow' ) ; self . $input . removeData ( 'selectize' ) ; $ ( window ) . off ( eventNS ) ; $ ( document ) . off ( eventNS ) ; $ ( document . body ) . off ( eventNS ) ; delete self . $input [ 0 ] . selectize ; }
Completely destroys the control and
unbinds all event listeners so that it can
be garbage collected.
Completely destroys the control and unbinds all event listeners so that it can be garbage collected .