assets/vendors/bower_components/jquery.steps/build/jquery.steps.js
/**
     * Removes the control functionality completely and transforms the current state to the initial HTML structure.
     *
     * @static
     * @private
     * @method destroy
     * @param wizard {Object} A jQuery wizard object
     **/
Removes the control functionality completely and transforms the current state to the initial HTML structure.
@static
@private
@method destroy
@param wizard {Object} A jQuery wizard object
Removes the control functionality completely and transforms the current state to the initial HTML structure . @static @private @method destroy @param wizard { Object } A jQuery wizard object
function destroy(wizard, options) {
        var eventNamespace = getEventNamespace(wizard);
        wizard.unbind(eventNamespace).removeData("uid").removeData("options")
            .removeData("state").removeData("steps").removeData("eventNamespace")
            .find(".actions a").unbind(eventNamespace);
        wizard.removeClass(options.clearFixCssClass + " vertical");
        var contents = wizard.find(".content > *");
        contents.removeData("loaded").removeData("mode").removeData("url");
        contents.removeAttr("id").removeAttr("role").removeAttr("tabindex")
            .removeAttr("class").removeAttr("style")._removeAria("labelledby")
            ._removeAria("hidden");
        wizard.find(".content > [data-mode='async'],.content > [data-mode='iframe']").empty();
        var wizardSubstitute = $("<{0} class=\"{1}\"></{0}>".format(wizard.get(0).tagName, wizard.attr("class")));
        var wizardId = wizard._id();
        if (wizardId != null && wizardId !== "") {
            wizardSubstitute._id(wizardId);
        }
        wizardSubstitute.html(wizard.find(".content").html());
        wizard.after(wizardSubstitute);
        wizard.remove();
        return wizardSubstitute;
    }
function destroy ( wizard , options ) { var eventNamespace = getEventNamespace ( wizard ) ; wizard . unbind ( eventNamespace ) . removeData ( "uid" ) . removeData ( "options" ) . removeData ( "state" ) . removeData ( "steps" ) . removeData ( "eventNamespace" ) . find ( ".actions a" ) . unbind ( eventNamespace ) ; wizard . removeClass ( options . clearFixCssClass + " vertical" ) ; var contents = wizard . find ( ".content > *" ) ; contents . removeData ( "loaded" ) . removeData ( "mode" ) . removeData ( "url" ) ; contents . removeAttr ( "id" ) . removeAttr ( "role" ) . removeAttr ( "tabindex" ) . removeAttr ( "class" ) . removeAttr ( "style" ) . _removeAria ( "labelledby" ) . _removeAria ( "hidden" ) ; wizard . find ( ".content > [data-mode='async'],.content > [data-mode='iframe']" ) . empty ( ) ; var wizardSubstitute = $ ( "<{0} class=\"{1}\"></{0}>" . format ( wizard . get ( 0 ) . tagName , wizard . attr ( "class" ) ) ) ; var wizardId = wizard . _id ( ) ; if ( wizardId != null && wizardId !== "" ) { wizardSubstitute . _id ( wizardId ) ; } wizardSubstitute . html ( wizard . find ( ".content" ) . html ( ) ) ; wizard . after ( wizardSubstitute ) ; wizard . remove ( ) ; return wizardSubstitute ; }
Removes the control functionality completely and transforms the current state to the initial HTML structure.
Removes the control functionality completely and transforms the current state to the initial HTML structure .
// Remove virtual data objects from the wizard // Remove attributes and CSS classes from the wizard // Remove virtual data objects from panels and their titles // Remove attributes, CSS classes and reset inline styles on all panels and their titles // Empty panels if the mode is set to 'async' or 'iframe'