dist/offside.js
function _factoryDomInit() {

                // Add class to sliding elements
                slidingElements.forEach( function( item ) {
                    addClass( item, slidingElementsClass );
                });

                // DOM Fallbacks when CSS transform 3d not available
                if ( !has3d ) {
                    // No CSS 3d Transform fallback
                    addClass( document.documentElement, 'no-csstransforms3d' ); //Adds Modernizr-like class to HTML element when CSS 3D Transforms not available
                }

                // Add init class to body
                addClass( body, initClass );
            }
function _factoryDomInit() {

                // Add class to sliding elements
                slidingElements.forEach( function( item ) {
                    addClass( item, slidingElementsClass );
                });

                // DOM Fallbacks when CSS transform 3d not available
                if ( !has3d ) {
                    // No CSS 3d Transform fallback
                    addClass( document.documentElement, 'no-csstransforms3d' ); //Adds Modernizr-like class to HTML element when CSS 3D Transforms not available
                }

                // Add init class to body
                addClass( body, initClass );
            }
function _factoryDomInit ( ) { // Add class to sliding elements slidingElements . forEach ( function ( item ) { addClass ( item , slidingElementsClass ) ; } ) ; // DOM Fallbacks when CSS transform 3d not available if ( ! has3d ) { // No CSS 3d Transform fallback addClass ( document . documentElement , 'no-csstransforms3d' ) ; //Adds Modernizr-like class to HTML element when CSS 3D Transforms not available } // Add init class to body addClass ( body , initClass ) ; }
Offside singleton-factory Dom initialization It's called just once on Offside singleton-factory init.
Offside singleton - factory Dom initialization It s called just once on Offside singleton - factory init .