code: 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;
              }
          }
docs: Method that checks if an item's element has the class defined by his type