src/jquery.timelineMe.js
function(item) {
            if(!item || !item.type || !item.element)
                return false;

            switch(item.type) {
                case 'milestone':
                    return (item.element.hasClass('timeline-milestone'));
                    break;
                case 'smallItem':
                    return (item.element.hasClass('timeline-smallitem'));
                    break;
                case 'bigItem':
                    return (item.element.hasClass('timeline-bigitem'));
                    break;
                default:
                    return false;
                    break;
            }
        }
function(item) {
            if(!item || !item.type || !item.element)
                return false;

            switch(item.type) {
                case 'milestone':
                    return (item.element.hasClass('timeline-milestone'));
                    break;
                case 'smallItem':
                    return (item.element.hasClass('timeline-smallitem'));
                    break;
                case 'bigItem':
                    return (item.element.hasClass('timeline-bigitem'));
                    break;
                default:
                    return false;
                    break;
            }
        }
function ( item ) { if ( ! item || ! item . type || ! item . element ) return false ; switch ( item . type ) { case 'milestone' : return ( item . element . hasClass ( 'timeline-milestone' ) ) ; break ; case 'smallItem' : return ( item . element . hasClass ( 'timeline-smallitem' ) ) ; break ; case 'bigItem' : return ( item . element . hasClass ( 'timeline-bigitem' ) ) ; break ; default : return false ; break ; } }
Method that checks if an item's element has the class defined by his type
Method that checks if an item s element has the class defined by his type