js/main.js
/* F U N C T I O N S */
F U N C T I O N S
F U N C T I O N S
function debounce(func, wait, immediate) {
        var timeout;
        return function() {
            var context = this, args = arguments;
            clearTimeout(timeout);
            timeout = setTimeout(function() {
                timeout = null;
                if (!immediate) func.apply(context, args);
            }, wait);
            if (immediate && !timeout) func.apply(context, args);
        };
    }
function debounce ( func , wait , immediate ) { var timeout ; return function ( ) { var context = this , args = arguments ; clearTimeout ( timeout ) ; timeout = setTimeout ( function ( ) { timeout = null ; if ( ! immediate ) func . apply ( context , args ) ; } , wait ) ; if ( immediate && ! timeout ) func . apply ( context , args ) ; } ; }
F U N C T I O N S
F U N C T I O N S