SAMYANG/m/asset/js/sy.m.plugin.js
/*
        * Destroys fullpage.js plugin events and optinally its html markup and styles
        */
Destroys fullpage.js plugin events and optinally its html markup and styles
Destroys fullpage . js plugin events and optinally its html markup and styles
function destroy(all) {
            setAutoScrolling(false, 'internal');
            setAllowScrolling(false);
            setKeyboardScrolling(false);
            container.addClass(DESTROYED);
            clearTimeout(afterSlideLoadsId);
            clearTimeout(afterSectionLoadsId);
            clearTimeout(resizeId);
            clearTimeout(scrollId);
            clearTimeout(scrollId2);
            $window
                .off('scroll', scrollHandler)
                .off('hashchange', hashChangeHandler)
                .off('resize', resizeHandler);
            $document
                .off('keydown', keydownHandler)
                .off('keyup', keyUpHandler)
                .off('click touchstart', SECTION_NAV_SEL + ' a')
                .off('mouseenter', SECTION_NAV_SEL + ' li')
                .off('mouseleave', SECTION_NAV_SEL + ' li')
                .off('click touchstart', SLIDES_NAV_LINK_SEL)
                .off('mouseover', options.normalScrollElements)
                .off('mouseout', options.normalScrollElements);
            $(SECTION_SEL)
                .off('click touchstart', SLIDES_ARROW_SEL);
            clearTimeout(afterSlideLoadsId);
            clearTimeout(afterSectionLoadsId);
            if (all) {
                destroyStructure();
            }
        }
function destroy ( all ) { setAutoScrolling ( false , 'internal' ) ; setAllowScrolling ( false ) ; setKeyboardScrolling ( false ) ; container . addClass ( DESTROYED ) ; clearTimeout ( afterSlideLoadsId ) ; clearTimeout ( afterSectionLoadsId ) ; clearTimeout ( resizeId ) ; clearTimeout ( scrollId ) ; clearTimeout ( scrollId2 ) ; $window . off ( 'scroll' , scrollHandler ) . off ( 'hashchange' , hashChangeHandler ) . off ( 'resize' , resizeHandler ) ; $document . off ( 'keydown' , keydownHandler ) . off ( 'keyup' , keyUpHandler ) . off ( 'click touchstart' , SECTION_NAV_SEL + ' a' ) . off ( 'mouseenter' , SECTION_NAV_SEL + ' li' ) . off ( 'mouseleave' , SECTION_NAV_SEL + ' li' ) . off ( 'click touchstart' , SLIDES_NAV_LINK_SEL ) . off ( 'mouseover' , options . normalScrollElements ) . off ( 'mouseout' , options . normalScrollElements ) ; $ ( SECTION_SEL ) . off ( 'click touchstart' , SLIDES_ARROW_SEL ) ; clearTimeout ( afterSlideLoadsId ) ; clearTimeout ( afterSectionLoadsId ) ; if ( all ) { destroyStructure ( ) ; } }
Destroys fullpage.js plugin events and optinally its html markup and styles
Destroys fullpage . js plugin events and optinally its html markup and styles
//lets make a mess!