jquery-plugin-template_extended.js
/**
     * Restores the latest saved attribute value of an element (e.g. style or class)
     * If attribute was not present it will be removed
     *
     * @param {jQuery} $el
     * @param {string} attr
     */
Restores the latest saved attribute value of an element
If attribute was not present it will be removed

@param {jQuery} $el
@param {string} attr
Restores the latest saved attribute value of an element If attribute was not present it will be removed @param { jQuery } $el @param { string } attr
function restoreAttr($el, attr) {
        var val = $el.data('_' + attr);
        if (val !== undefined) {
            if (val === false) {
                $el.removeAttr(attr);
            } else {
                $el.attr(attr, val);
            }
        }
    }
function restoreAttr ( $el , attr ) { var val = $el . data ( '_' + attr ) ; if ( val !== undefined ) { if ( val === false ) { $el . removeAttr ( attr ) ; } else { $el . attr ( attr , val ) ; } } }
Restores the latest saved attribute value of an element (e.g.
Restores the latest saved attribute value of an element ( e . g .