dist/toolkit.js
function(container, options) {
        container = $(container);

        options = this.setOptions(options, container);
        this.items = container.find(this.options.lazyClass);

        if (container.css('overflow') === 'auto') {
            this.container = container;
        }

        var callback = $.throttle(this.load.bind(this), options.throttle);

        // Set events
        this.addEvents([
            ['scroll', 'container', callback],
            ['resize', 'window', callback],
            ['ready', 'document', 'onReady']
        ]);

        this.initialize();
    }
function(container, options) {
        container = $(container);

        options = this.setOptions(options, container);
        this.items = container.find(this.options.lazyClass);

        if (container.css('overflow') === 'auto') {
            this.container = container;
        }

        var callback = $.throttle(this.load.bind(this), options.throttle);

        // Set events
        this.addEvents([
            ['scroll', 'container', callback],
            ['resize', 'window', callback],
            ['ready', 'document', 'onReady']
        ]);

        this.initialize();
    }
function ( container , options ) { container = $ ( container ) ; options = this . setOptions ( options , container ) ; this . items = container . find ( this . options . lazyClass ) ; if ( container . css ( 'overflow' ) === 'auto' ) { this . container = container ; } var callback = $ . throttle ( this . load . bind ( this ) , options . throttle ) ; // Set events this . addEvents ( [ [ 'scroll' , 'container' , callback ] , [ 'resize' , 'window' , callback ] , [ 'ready' , 'document' , 'onReady' ] ] ) ; this . initialize ( ) ; }
Initialize the lazy load.

@param {jQuery} container
@param {Object} [options]
Initialize the lazy load .