dist/toolkit.js
function(node, index) {
        node = $(node);

        this.fireEvent('showing', [node]);

        // Set the item being loaded for so that events can be fired
        this.element = node.removeClass(this.options.lazyClass.substr(1));

        // Replace src attributes on images
        node.find('img').each(function() {
            var image = $(this), src;

            if (Toolkit.isRetina) {
                src = image.data('src-retina');
            }

            if (!src) {
                src = image.data('src');
            }

            if (src) {
                image.attr('src', src);
            }
        });

        // Replace item with null since removing from the array causes it to break
        this.items.splice(index, 1, null);
        this.loaded++;

        this.fireEvent('shown', [node]);
    }
function(node, index) {
        node = $(node);

        this.fireEvent('showing', [node]);

        // Set the item being loaded for so that events can be fired
        this.element = node.removeClass(this.options.lazyClass.substr(1));

        // Replace src attributes on images
        node.find('img').each(function() {
            var image = $(this), src;

            if (Toolkit.isRetina) {
                src = image.data('src-retina');
            }

            if (!src) {
                src = image.data('src');
            }

            if (src) {
                image.attr('src', src);
            }
        });

        // Replace item with null since removing from the array causes it to break
        this.items.splice(index, 1, null);
        this.loaded++;

        this.fireEvent('shown', [node]);
    }
function ( node , index ) { node = $ ( node ) ; this . fireEvent ( 'showing' , [ node ] ) ; // Set the item being loaded for so that events can be fired this . element = node . removeClass ( this . options . lazyClass . substr ( 1 ) ) ; // Replace src attributes on images node . find ( 'img' ) . each ( function ( ) { var image = $ ( this ) , src ; if ( Toolkit . isRetina ) { src = image . data ( 'src-retina' ) ; } if ( ! src ) { src = image . data ( 'src' ) ; } if ( src ) { image . attr ( 'src' , src ) ; } } ) ; // Replace item with null since removing from the array causes it to break this . items . splice ( index , 1 , null ) ; this . loaded ++ ; this . fireEvent ( 'shown' , [ node ] ) ; }
Show the item by removing the lazy load class.

@param {jQuery} node
@param {Number} index
Show the item by removing the lazy load class .