src/jquery.timelineMe.js
function(element) {
        if(!element) return;

        var children = element.children();
        if(children.length <= 0) return;

        var totalWidth = 0;
        for(var i = 0; i < children.length; i++) {
            totalWidth += $(children[i]).width();
        }

        element.width(totalWidth);
    }
function(element) {
        if(!element) return;

        var children = element.children();
        if(children.length <= 0) return;

        var totalWidth = 0;
        for(var i = 0; i < children.length; i++) {
            totalWidth += $(children[i]).width();
        }

        element.width(totalWidth);
    }
function ( element ) { if ( ! element ) return ; var children = element . children ( ) ; if ( children . length <= 0 ) return ; var totalWidth = 0 ; for ( var i = 0 ; i < children . length ; i ++ ) { totalWidth += $ ( children [ i ] ) . width ( ) ; } element . width ( totalWidth ) ; }
Method that return container width depending on children's width
Method that return container width depending on children s width