function _imageLoaded(event) {
            if (!event || event.type !== 'load') {
                return;
            }

            var img = event.srcElement;
            // Remove image from loading stack
            var imageIndex = _images.indexOf(img);
            if (imageIndex !== -1) {
                _images.splice(imageIndex, 1);
            }

            // Calculate new height
            _handleResize();
        }
/**
         * Handle image load by triggering a resize
         */
Handle image load by triggering a resize
Handle image load by triggering a resize
function _imageLoaded(event) {
            if (!event || event.type !== 'load') {
                return;
            }
            var img = event.srcElement;
            var imageIndex = _images.indexOf(img);
            if (imageIndex !== -1) {
                _images.splice(imageIndex, 1);
            }
            _handleResize();
        }
function _imageLoaded ( event ) { if ( ! event || event . type !== 'load' ) { return ; } var img = event . srcElement ; var imageIndex = _images . indexOf ( img ) ; if ( imageIndex !== - 1 ) { _images . splice ( imageIndex , 1 ) ; } _handleResize ( ) ; }
Handle image load by triggering a resize
Handle image load by triggering a resize
// Remove image from loading stack // Calculate new height