jquery-scrolltofixed.js
function setUnfixed() {
            // Only unfix the target element and the spacer if we need to.
            if (!isUnfixed()) {
                lastOffsetLeft = -1;

                // Hide the spacer now that the target element will fill the
                // space.
                spacer.css('display', 'none');

                // Remove the style attributes that were added to the target.
                // This will reverse the target back to the its original style.
                target.css({
                    'z-index' : originalZIndex,
                    'width' : '',
                    'position' : originalPosition,
                    'left' : '',
                    'top' : originalOffsetTop,
                    'margin-left' : ''
                });

                target.removeClass('scroll-to-fixed-fixed');

                if (base.options.className) {
                    target.removeClass(base.options.className);
                }

                position = null;
            }
        }
function setUnfixed() {
            // Only unfix the target element and the spacer if we need to.
            if (!isUnfixed()) {
                lastOffsetLeft = -1;

                // Hide the spacer now that the target element will fill the
                // space.
                spacer.css('display', 'none');

                // Remove the style attributes that were added to the target.
                // This will reverse the target back to the its original style.
                target.css({
                    'z-index' : originalZIndex,
                    'width' : '',
                    'position' : originalPosition,
                    'left' : '',
                    'top' : originalOffsetTop,
                    'margin-left' : ''
                });

                target.removeClass('scroll-to-fixed-fixed');

                if (base.options.className) {
                    target.removeClass(base.options.className);
                }

                position = null;
            }
        }
function setUnfixed ( ) { // Only unfix the target element and the spacer if we need to. if ( ! isUnfixed ( ) ) { lastOffsetLeft = - 1 ; // Hide the spacer now that the target element will fill the // space. spacer . css ( 'display' , 'none' ) ; // Remove the style attributes that were added to the target. // This will reverse the target back to the its original style. target . css ( { 'z-index' : originalZIndex , 'width' : '' , 'position' : originalPosition , 'left' : '' , 'top' : originalOffsetTop , 'margin-left' : '' } ) ; target . removeClass ( 'scroll-to-fixed-fixed' ) ; if ( base . options . className ) { target . removeClass ( base . options . className ) ; } position = null ; } }
Sets the target element back to unfixed. Also, hides the spacer.
Sets the target element back to unfixed . Also hides the spacer .