dist/toolkit.js
function() {
        var options = this.options,
            element = this.element;

        if (this.name === 'Input') {
            if (options.checkbox) {
                element.find(options.checkbox).each(function() {
                    $(this).toolkit('inputCheckbox', 'destroy');
                });
            }

            if (options.radio) {
                element.find(options.radio).each(function() {
                    $(this).toolkit('inputRadio', 'destroy');
                });
            }

            if (options.select) {
                element.find(options.select).each(function() {
                    $(this).toolkit('inputSelect', 'destroy');
                });
            }

        // Check for the wrapper as some inputs may be initialized but not used.
        // Multi-selects using native controls for example.
        } else if (this.wrapper) {
            this.wrapper.replaceWith(element);
            element.removeAttr('style');
        }
    }
function() {
        var options = this.options,
            element = this.element;

        if (this.name === 'Input') {
            if (options.checkbox) {
                element.find(options.checkbox).each(function() {
                    $(this).toolkit('inputCheckbox', 'destroy');
                });
            }

            if (options.radio) {
                element.find(options.radio).each(function() {
                    $(this).toolkit('inputRadio', 'destroy');
                });
            }

            if (options.select) {
                element.find(options.select).each(function() {
                    $(this).toolkit('inputSelect', 'destroy');
                });
            }

        // Check for the wrapper as some inputs may be initialized but not used.
        // Multi-selects using native controls for example.
        } else if (this.wrapper) {
            this.wrapper.replaceWith(element);
            element.removeAttr('style');
        }
    }
function ( ) { var options = this . options , element = this . element ; if ( this . name === 'Input' ) { if ( options . checkbox ) { element . find ( options . checkbox ) . each ( function ( ) { $ ( this ) . toolkit ( 'inputCheckbox' , 'destroy' ) ; } ) ; } if ( options . radio ) { element . find ( options . radio ) . each ( function ( ) { $ ( this ) . toolkit ( 'inputRadio' , 'destroy' ) ; } ) ; } if ( options . select ) { element . find ( options . select ) . each ( function ( ) { $ ( this ) . toolkit ( 'inputSelect' , 'destroy' ) ; } ) ; } // Check for the wrapper as some inputs may be initialized but not used. // Multi-selects using native controls for example. } else if ( this . wrapper ) { this . wrapper . replaceWith ( element ) ; element . removeAttr ( 'style' ) ; } }
Remove the wrapper before destroying.
Remove the wrapper before destroying .