function lazyInit(element, func) {
        var scrollHandler = function() {
            if ((!element.hasClass('lazy-loaded') && (isScrolledIntoView(element)))) {
                func.call();
                element.addClass('lazy-loaded');
            }
        };

        scrollHandler();
        $window.on('scroll', scrollHandler);
    }
/**
     * @desc Calls a function when element has been scrolled into the view
     * @param {object} element - jQuery object
     * @param {function} func - init function
     */
@desc Calls a function when element has been scrolled into the view
@param {object} element - jQuery object
@param {function} func - init function
@desc Calls a function when element has been scrolled into the view @param { object } element - jQuery object @param { function } func - init function
function lazyInit(element, func) {
        var scrollHandler = function() {
            if ((!element.hasClass('lazy-loaded') && (isScrolledIntoView(element)))) {
                func.call();
                element.addClass('lazy-loaded');
            }
        };
        scrollHandler();
        $window.on('scroll', scrollHandler);
    }
function lazyInit ( element , func ) { var scrollHandler = function ( ) { if ( ( ! element . hasClass ( 'lazy-loaded' ) && ( isScrolledIntoView ( element ) ) ) ) { func . call ( ) ; element . addClass ( 'lazy-loaded' ) ; } } ; scrollHandler ( ) ; $window . on ( 'scroll' , scrollHandler ) ; }
@desc Calls a function when element has been scrolled into the view
 @param {object} element - jQuery object
 @param {function} func - init function
@desc Calls a function when element has been scrolled into the view @param { object } element - jQuery object @param { function } func - init function